Home
last modified time | relevance | path

Searched refs:ConstExpr (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp233 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 DConstantHoisting.cpp404 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 DConstantHoisting.h85 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 DVEAsmParser.cpp237 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 Dcxx11-extern-constexpr.cpp63 static const int ConstExpr = 46; variable
80 use(ConstExpr); in foo()
H A Dcxx0x-initializer-stdinitializerlist.cpp461 namespace ConstExpr { namespace
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUPrintfRuntimeBinding.cpp179 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 DRedundantExpressionCheck.cpp499 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 Dimplicit-exception-spec.cpp19 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 D2002-08-16-ConstExprInlined.ll2 ; ConstExpr reference. Disassembling this program assembled yields invalid
/llvm-project-15.0.7/llvm/utils/
H A Dllvm.grm237 | Types ConstExpr
247 ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")"
336 | ConstExpr
/llvm-project-15.0.7/llvm/test/Transforms/Inline/
H A Dalloca_test.ll42 ; 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 D2012-03-26-constexpr.ll2 ; PR11950: isHighCostExpansion crashes on ConstExpr
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZAsmPrinter.cpp547 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 DAArch64MCPlusBuilder.cpp412 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 DMCPlusBuilder.h1138 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 DCodeGenModule.cpp6513 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 DPatternMatch.cpp1793 TEST_F(PatternMatchTest, ConstExpr) { in TEST_F() argument