/llvm-project/llvm/test/MC/Disassembler/AArch64/ |
H A D | armv9.5a-cpa.txt | 2 # RUN: not llvm-mc -triple aarch64 -disassemble < %s 2>&1 | FileCheck --check-prefix=NO-CPA %s 6 # NO-CPA: warning: invalid instruction encoding 10 # NO-CPA: warning: invalid instruction encoding 14 # NO-CPA: warning: invalid instruction encoding 18 # NO-CPA: warning: invalid instruction encoding 22 # NO-CPA: warning: invalid instruction encoding 26 # NO-CPA: warning: invalid instruction encoding 30 # NO-CPA: warning: invalid instruction encoding 34 # NO-CPA: warning: invalid instruction encoding 38 # NO-CPA: warning: invalid instruction encoding [all …]
|
/llvm-project/llvm/unittests/ADT/ |
H A D | IListNodeBaseTest.cpp | 185 const ParentNode CPA; in TEST() local 197 std::remove_pointer_t<decltype(CPA.getNodeBaseParent())>; in TEST()
|
/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 1176 if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) { in InitializeMemory() 1178 getDataLayout().getTypeAllocSize(CPA->getType()->getElementType()); in InitializeMemory() 1179 for (unsigned i = 0, e = CPA->getNumOperands(); i != e; ++i) in InitializeMemory() 1180 InitializeMemory(CPA->getOperand(i), (char*)Addr+i*ElementSize); in InitializeMemory() 1177 if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) { InitializeMemory() local
|
/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64AsmPrinter.cpp | 114 const MCExpr *lowerConstantPtrAuth(const ConstantPtrAuth &CPA) override; 1397 if (const auto *CPA = dyn_cast<ConstantPtrAuth>(CV)) in LowerPATCHPOINT() 1398 if (CPA->hasAddressDiscriminator() && in LowerPATCHPOINT() 1399 !CPA->hasSpecialAddressDiscriminator( in LowerPATCHPOINT() 2226 AArch64AsmPrinter::lowerConstantPtrAuth(const ConstantPtrAuth &CPA) { in emitInstruction() 2231 const Value *BaseGV = CPA.getPointer()->stripAndAccumulateConstantOffsets( in emitInstruction() 2253 uint64_t KeyID = CPA.getKey()->getZExtValue(); in emitInstruction() 2261 uint64_t Disc = CPA.getDiscriminator()->getZExtValue(); in emitInstruction() 2268 CPA.hasAddressDiscriminator(), Ctx); in emitInstruction() 1617 lowerConstantPtrAuth(const ConstantPtrAuth & CPA) lowerConstantPtrAuth() argument
|
H A D | AArch64Features.td | 511 def FeatureCPA : ExtensionWithMArch<"cpa", "CPA", "FEAT_CPA",
|
H A D | AArch64InstrFormats.td | 13110 // Base CPA scalar add/subtract with lsl #imm3 shift 13128 // Alias for CPA scalar add/subtract with no shift
|
/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | AsmPrinter.h | 583 virtual const MCExpr *lowerConstantPtrAuth(const ConstantPtrAuth &CPA) { 576 lowerConstantPtrAuth(const ConstantPtrAuth & CPA) lowerConstantPtrAuth() argument
|
/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 402 const ConstantPtrAuth *CPA, in buildConstantPtrAuth() argument 407 MIB.addImm(CPA->getKey()->getZExtValue()); in buildConstantPtrAuth() 409 MIB.addImm(CPA->getDiscriminator()->getZExtValue()); in buildConstantPtrAuth()
|
H A D | IRTranslator.cpp | 3676 else if (auto CPA = dyn_cast<ConstantPtrAuth>(&C)) { in emitSPDescriptorParent() 3677 Register Addr = getOrCreateVReg(*CPA->getPointer()); in emitSPDescriptorParent() 3678 Register AddrDisc = getOrCreateVReg(*CPA->getAddrDiscriminator()); in emitSPDescriptorParent() 3679 EntryBuilder->buildConstantPtrAuth(Reg, CPA, Addr, AddrDisc); in emitSPDescriptorParent() 3495 else if (auto CPA = dyn_cast<ConstantPtrAuth>(&C)) { translate() local
|
/llvm-project/llvm/lib/IR/ |
H A D | Verifier.cpp | 632 void visitConstantPtrAuth(const ConstantPtrAuth *CPA); 2487 if (const auto *CPA = dyn_cast<ConstantPtrAuth>(C)) in verifyAttributeCount() 2488 visitConstantPtrAuth(CPA); 2517 void Verifier::visitConstantPtrAuth(const ConstantPtrAuth *CPA) { in verifyInlineAsmCall() 2518 Check(CPA->getPointer()->getType()->isPointerTy(), in verifyInlineAsmCall() 2521 Check(CPA->getType() == CPA->getPointer()->getType(), in verifyInlineAsmCall() 2524 Check(CPA->getKey()->getBitWidth() == 32, in verifyInlineAsmCall() 2527 Check(CPA->getAddrDiscriminator()->getType()->isPointerTy(), in verifyInlineAsmCall() 2530 Check(CPA in verifyInlineAsmCall() 2436 if (const auto *CPA = dyn_cast<ConstantPtrAuth>(C)) visitConstantExprsRecursively() local 2466 visitConstantPtrAuth(const ConstantPtrAuth * CPA) visitConstantPtrAuth() argument 5126 } else if (auto *CPA = dyn_cast<ConstantPtrAuth>(I.getOperand(i))) { visitInstruction() local [all...] |
H A D | AsmWriter.cpp | 1601 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(CV)) { in WriteConstantInternal() 1606 if (!CPA->getOperand(2)->isNullValue()) in WriteConstantInternal() 1608 if (!CPA->getOperand(3)->isNullValue()) in WriteConstantInternal() 1614 WriterCtx.TypePrinter->print(CPA->getOperand(i)->getType(), Out); in WriteConstantInternal() 1616 WriteAsOperandInternal(Out, CPA->getOperand(i), WriterCtx); in WriteConstantInternal() 1600 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(CV)) { WriteConstantInternal() local
|
/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCalls.cpp | 2928 const auto *CPA = dyn_cast<ConstantPtrAuth>(PtrToInt->getOperand(0)); in visitCallInst() 2929 if (!CPA || !CPA->isKnownCompatibleWith(Key, Disc, DL)) in visitCallInst() 2937 auto *NewCPA = ConstantPtrAuth::get(CPA->getPointer(), SignKey, in visitCallInst() 2945 BasePtr = Builder.CreatePtrToInt(CPA->getPointer(), II->getType()); in visitCallInst() 2698 const auto *CPA = dyn_cast<ConstantPtrAuth>(PtrToInt->getOperand(0)); visitCallInst() local
|
/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 2901 } else if (const auto *CPA = dyn_cast<ConstantPtrAuth>(C)) { in pushValueAndType() 2903 Record.push_back(VE.getValueID(CPA->getPointer())); in pushValueAndType() 2904 Record.push_back(VE.getValueID(CPA->getKey())); in pushValueAndType() 2905 Record.push_back(VE.getValueID(CPA->getDiscriminator())); in pushValueAndType() 2906 Record.push_back(VE.getValueID(CPA->getAddrDiscriminator())); 2855 } else if (const auto *CPA = dyn_cast<ConstantPtrAuth>(C)) { writeConstants() local
|
/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.h | 904 const ConstantPtrAuth *CPA,
|
/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 3391 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(CV)) in emitGlobalConstantDataSequential() 3392 return lowerConstantPtrAuth(*CPA); in emitGlobalConstantDataSequential() 3138 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(CV)) lowerConstant() local
|
/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 1802 if (const ConstantPtrAuth *CPA = dyn_cast<ConstantPtrAuth>(C)) { in getValueImpl() 1804 getValue(CPA->getPointer()), getValue(CPA->getKey()), in getValueImpl() 1805 getValue(CPA->getAddrDiscriminator()), in getValueImpl() 1806 getValue(CPA->getDiscriminator())); in getValueImpl() local
|
/llvm-project/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 3441 if (auto *CPA = dyn_cast<ConstantPtrAuth>(V)) in isNonEqualSelect() 3442 return isKnownNonZero(CPA->getPointer(), DemandedElts, Q, Depth); in isNonEqualSelect() 3166 if (auto *CPA = dyn_cast<ConstantPtrAuth>(V)) isKnownNonZero() local
|