| /llvm-project-15.0.7/llvm/lib/Target/Lanai/AsmParser/ |
| H A D | LanaiAsmParser.cpp | 233 int64_t Value = ConstExpr->getValue(); in isHiImm16() 255 if (ConstExpr) { in isHiImm16And() 256 int64_t Value = ConstExpr->getValue(); in isHiImm16And() 269 int64_t Value = ConstExpr->getValue(); in isLoImm16() 316 if (ConstExpr) { in isLoImm16And() 329 if (!ConstExpr) in isImmShift() 331 int64_t Value = ConstExpr->getValue(); in isImmShift() 371 if (!ConstExpr) in isImm10() 373 int64_t Value = ConstExpr->getValue(); in isImm10() 382 if (!ConstExpr) in isCondCode() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 404 ConstantExpr *ConstExpr) { in collectConstantCandidates() argument 406 if (ConstExpr->getType()->isVectorTy()) in collectConstantCandidates() 417 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates() 442 ConstPtrUnionType Cand = ConstExpr; in collectConstantCandidates() 447 ConstExpr)); in collectConstantCandidates() 482 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates() 486 if (!ConstExpr->isCast()) in collectConstantCandidates() 646 ConstantExpr *ConstExpr = MaxCostItr->ConstExpr; in findAndMakeBaseConstant() local 649 ConstInfo.BaseExpr = ConstExpr; in findAndMakeBaseConstant() 657 ConstCand->ConstExpr ? ConstCand->ConstExpr->getType() : nullptr; in findAndMakeBaseConstant() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | ConstantHoisting.h | 85 ConstantExpr *ConstExpr; member 88 ConstantCandidate(ConstantInt *ConstInt, ConstantExpr *ConstExpr=nullptr) : 89 ConstInt(ConstInt), ConstExpr(ConstExpr) {} in ConstInt() 179 ConstantExpr *ConstExpr);
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/AsmParser/ |
| H A D | VEAsmParser.cpp | 237 int64_t Value = ConstExpr->getValue(); in isZero() 248 int64_t Value = ConstExpr->getValue(); in isUImm0to2() 259 int64_t Value = ConstExpr->getValue(); in isUImm1() 270 int64_t Value = ConstExpr->getValue(); in isUImm2() 281 int64_t Value = ConstExpr->getValue(); in isUImm3() 292 int64_t Value = ConstExpr->getValue(); in isUImm4() 303 int64_t Value = ConstExpr->getValue(); in isUImm6() 314 int64_t Value = ConstExpr->getValue(); in isUImm7() 583 assert(ConstExpr && "Null operands!"); in addMImmOperands() 584 int64_t Value = ConstExpr->getValue(); in addMImmOperands() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | cxx11-extern-constexpr.cpp | 63 static const int ConstExpr = 46; variable 80 use(ConstExpr); in foo()
|
| H A D | cxx0x-initializer-stdinitializerlist.cpp | 461 namespace ConstExpr { namespace
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPrintfRuntimeBinding.cpp | 179 ConstantExpr *ConstExpr = dyn_cast<ConstantExpr>(Op); in lowerPrintfForGpu() local 181 if (ConstExpr) { in lowerPrintfForGpu() 182 GlobalVariable *GVar = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() 250 if (auto *ConstExpr = dyn_cast<ConstantExpr>(Arg)) { in lowerPrintfForGpu() local 251 auto *GV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu() 422 if (auto *ConstExpr = dyn_cast<ConstantExpr>(Arg)) { in lowerPrintfForGpu() local 423 auto *GV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in lowerPrintfForGpu()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | RedundantExpressionCheck.cpp | 499 const Expr *&ConstExpr) { in retrieveIntegerConstantExpr() argument 501 ConstExpr = Result.Nodes.getNodeAs<Expr>(CstId); in retrieveIntegerConstantExpr() 502 if (!ConstExpr) in retrieveIntegerConstantExpr() 514 const Expr *ConstExpr = nullptr; in retrieveIntegerConstantExpr() local 515 return retrieveIntegerConstantExpr(Result, Id, Value, ConstExpr); in retrieveIntegerConstantExpr() 659 APSInt &Value, const Expr *&ConstExpr) { in retrieveRelationalIntegerConstantExpr() argument 670 if (!retrieveIntegerConstantExpr(Result, Id, Value, ConstExpr)) in retrieveRelationalIntegerConstantExpr() 1121 const Expr *Sym = nullptr, *ConstExpr = nullptr; in checkBitwiseExpr() local 1125 ConstExpr)) in checkBitwiseExpr() 1137 SourceRange ConstExprRange(ConstExpr->getBeginLoc(), in checkBitwiseExpr() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | implicit-exception-spec.cpp | 19 struct ConstExpr { // expected-error {{default member initializer for 'b' needed}} struct 21 … noexcept(ConstExpr()) && ThrowSomething(); // expected-note {{in evaluation of exception spec}}
|
| /llvm-project-15.0.7/llvm/test/Assembler/ |
| H A D | 2002-08-16-ConstExprInlined.ll | 2 ; ConstExpr reference. Disassembling this program assembled yields invalid
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | llvm.grm | 237 | Types ConstExpr 247 ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")" 336 | ConstExpr
|
| /llvm-project-15.0.7/llvm/test/Transforms/Inline/ |
| H A D | alloca_test.ll | 42 ; Don't assume that the size is a ConstantInt (a ConstExpr is also a constant).
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopStrengthReduce/ |
| H A D | 2012-03-26-constexpr.ll | 2 ; PR11950: isHighCostExpansion crashes on ConstExpr
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZAsmPrinter.cpp | 547 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction() local 549 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction() 560 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction() local 564 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction()
|
| /llvm-project-15.0.7/bolt/lib/Target/AArch64/ |
| H A D | AArch64MCPlusBuilder.cpp | 412 auto *ConstExpr = dyn_cast<MCConstantExpr>(Expr); in getTargetAddend() local 413 if (ConstExpr) in getTargetAddend() 414 return ConstExpr->getValue(); in getTargetAddend()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | MCPlusBuilder.h | 1138 const auto *ConstExpr = dyn_cast<MCConstantExpr>(BinExpr->getRHS()); in getTargetSymbolInfo() local 1139 if (BinExpr->getOpcode() == MCBinaryExpr::Add && SymExpr && ConstExpr) in getTargetSymbolInfo() 1140 return std::make_pair(&SymExpr->getSymbol(), ConstExpr->getValue()); in getTargetSymbolInfo()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 6513 if (auto *ConstExpr = dyn_cast<llvm::ConstantExpr>(User)) { in CheckAndReplaceExternCIFuncs() local 6514 if (ConstExpr->getOpcode() != llvm::Instruction::BitCast) in CheckAndReplaceExternCIFuncs() 6517 for (llvm::User *CEUser : ConstExpr->users()) { in CheckAndReplaceExternCIFuncs() 6524 CEs.push_back(ConstExpr); in CheckAndReplaceExternCIFuncs() 6540 for (llvm::ConstantExpr *ConstExpr : CEs) in CheckAndReplaceExternCIFuncs() 6541 ConstExpr->destroyConstant(); in CheckAndReplaceExternCIFuncs()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | PatternMatch.cpp | 1793 TEST_F(PatternMatchTest, ConstExpr) { in TEST_F() argument
|