diff options
author | Alan Phipps <a-phipps@ti.com> | 2023-09-21 13:07:31 -0500 |
---|---|---|
committer | Alan Phipps <a-phipps@ti.com> | 2023-10-30 11:15:02 -0500 |
commit | f95b2f1acf1171abb0d00089fd4c9238753847e3 (patch) | |
tree | fdff5f77efd942323c9ff53fc885b7d5ef166d33 /llvm/lib/IR/IntrinsicInst.cpp | |
parent | dc8c2a7794a65f98184eeddf9c3020c1e0a08580 (diff) | |
download | llvm-f95b2f1acf1171abb0d00089fd4c9238753847e3.zip llvm-f95b2f1acf1171abb0d00089fd4c9238753847e3.tar.gz llvm-f95b2f1acf1171abb0d00089fd4c9238753847e3.tar.bz2 |
Reland "[InstrProf][compiler-rt] Enable MC/DC Support in LLVM Source-based Code Coverage (1/3)"
Part 1 of 3. This includes the LLVM back-end processing and profile
reading/writing components. compiler-rt changes are included.
Differential Revision: https://reviews.llvm.org/D138846
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
-rw-r--r-- | llvm/lib/IR/IntrinsicInst.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp index e4ddd57..20ae08d 100644 --- a/llvm/lib/IR/IntrinsicInst.cpp +++ b/llvm/lib/IR/IntrinsicInst.cpp @@ -270,13 +270,13 @@ int llvm::Intrinsic::lookupLLVMIntrinsicByName(ArrayRef<const char *> NameTable, return -1; } -ConstantInt *InstrProfInstBase::getNumCounters() const { +ConstantInt *InstrProfCntrInstBase::getNumCounters() const { if (InstrProfValueProfileInst::classof(this)) llvm_unreachable("InstrProfValueProfileInst does not have counters!"); return cast<ConstantInt>(const_cast<Value *>(getArgOperand(2))); } -ConstantInt *InstrProfInstBase::getIndex() const { +ConstantInt *InstrProfCntrInstBase::getIndex() const { if (InstrProfValueProfileInst::classof(this)) llvm_unreachable("Please use InstrProfValueProfileInst::getIndex()"); return cast<ConstantInt>(const_cast<Value *>(getArgOperand(3))); |