aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorManuelJBrito <manuel.brito@tecnico.ulisboa.pt>2023-04-27 16:22:57 +0100
committerManuelJBrito <manuel.brito@tecnico.ulisboa.pt>2023-04-27 18:01:54 +0100
commitd22edb9794245b7b37490b9f40bd66130d8cf3b7 (patch)
tree81402fd831a3665af8c5c304de081744ae795d35 /llvm/lib/IR/Core.cpp
parent1e743732e7879bed2f8cbc1a875569a3a5e147d8 (diff)
downloadllvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.zip
llvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.tar.gz
llvm-d22edb9794245b7b37490b9f40bd66130d8cf3b7.tar.bz2
[IR][NFC] Change UndefMaskElem to PoisonMaskElem
Following the change in shufflevector semantics, poison will be used to represent undefined elements in shufflevector masks. Differential Revision: https://reviews.llvm.org/D149256
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 4821ff56..4aee5ce 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -3949,7 +3949,7 @@ int LLVMGetMaskValue(LLVMValueRef SVInst, unsigned Elt) {
return I->getMaskValue(Elt);
}
-int LLVMGetUndefMaskElem(void) { return UndefMaskElem; }
+int LLVMGetUndefMaskElem(void) { return PoisonMaskElem; }
LLVMBool LLVMIsAtomicSingleThread(LLVMValueRef AtomicInst) {
Value *P = unwrap(AtomicInst);