The .ptx version produced by llc can be specified by passing it with --mattr. Currently it is not possible to specify the .ptx version with -Ctarget-feature because these are not passed through to llvm-bitcode-linker and handled by it. This commit adds both. --target-feature and -mattr are passed with equals to mitigate issues when the value starts with a - (minus). |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
LLVM Bitcode Linker
The LLVM bitcode linker can be used to link targets without any dependency on system libraries. The code will be linked in llvm-bc before compiling to native code. For some of these targets (e.g. ptx) there does not exist a sensible way to link the native format at all. A bitcode linker is required to link code compiled for such targets.