diff options
| author | bors <bors@rust-lang.org> | 2020-06-19 12:30:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-06-19 12:30:20 +0000 |
| commit | 72417d84fb51495a4f1d007fb2397a0b2609ab63 (patch) | |
| tree | 227579b6a22580e046493bb93b2adb946f9db021 /src/rustllvm/RustWrapper.cpp | |
| parent | 63b441aafbf52d6ba789ecc478455800c1a48df9 (diff) | |
| parent | 61c8925310f5a8eb5b0faaf582c435de326a8e7f (diff) | |
| download | rust-72417d84fb51495a4f1d007fb2397a0b2609ab63.tar.gz rust-72417d84fb51495a4f1d007fb2397a0b2609ab63.zip | |
Auto merge of #73504 - RalfJung:rollup-iy8hsvl, r=RalfJung
Rollup of 10 pull requests Successful merges: - #72280 (Fix up autoderef when reborrowing) - #72785 (linker: MSVC supports linking static libraries as a whole archive) - #73011 (first stage of implementing LLVM code coverage) - #73044 (compiletest: Add directives to detect sanitizer support) - #73054 (memory access sanity checks: abort instead of panic) - #73136 (Change how compiler-builtins gets many CGUs) - #73280 (Add E0763) - #73317 (bootstrap: read config from $RUST_BOOTSTRAP_CONFIG) - #73350 (bootstrap/install.rs: support a nonexistent `prefix` in `x.py install`) - #73352 (Speed up bootstrap a little.) Failed merges: r? @ghost
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 4704622922a..cdb3a157eab 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -5,6 +5,7 @@ #include "llvm/IR/DiagnosticPrinter.h" #include "llvm/IR/GlobalVariable.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/Intrinsics.h" #include "llvm/Object/Archive.h" #include "llvm/Object/ObjectFile.h" #include "llvm/Bitcode/BitcodeWriterPass.h" @@ -1364,6 +1365,11 @@ extern "C" LLVMValueRef LLVMRustBuildCall(LLVMBuilderRef B, LLVMValueRef Fn, unwrap(Fn), makeArrayRef(unwrap(Args), NumArgs), Bundles)); } +extern "C" LLVMValueRef LLVMRustGetInstrprofIncrementIntrinsic(LLVMModuleRef M) { + return wrap(llvm::Intrinsic::getDeclaration(unwrap(M), + (llvm::Intrinsic::ID)llvm::Intrinsic::instrprof_increment)); +} + extern "C" LLVMValueRef LLVMRustBuildMemCpy(LLVMBuilderRef B, LLVMValueRef Dst, unsigned DstAlign, LLVMValueRef Src, unsigned SrcAlign, |
