Home
last modified time | relevance | path

Searched refs:ConstVal (Results 1 – 25 of 46) sorted by relevance

12

/llvm-project/llvm/utils/
H A Dllvm.grm226 ConstVal::= Types "[" ^ ConstVector ^ "]"
247 ConstExpr::= CastOps "(" ^ ConstVal to Types ^ ")"
248 | getelementptr OptInBounds "(" ^ ConstVal IndexList ^ ")"
249 | select "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")"
250 | ArithmeticOps "(" ^ ConstVal ^ "," ConstVal ^ ")"
251 | LogicalOps "(" ^ ConstVal ^ "," ConstVal ^ ")"
252 | icmp IPredicates "(" ^ ConstVal ^ "," ConstVal ^ ")"
253 | fcmp FPredicates "(" ^ ConstVal ^ "," ConstVal ^ ")"
254 | extractelement "(" ^ ConstVal ^ "," ConstVal ^ ")"
255 | insertelement "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")"
[all …]
/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h86 Constant *ConstVal;
144 // ConstVal and Range are initialized on-demand.
159 ConstVal = Other.ConstVal; in ValueLatticeElement()
178 ConstVal = Other.ConstVal; in ValueLatticeElement()
254 return ConstVal;
259 return ConstVal;
329 ConstVal = V;
349 ConstVal in markNotConstant()
89 Constant *ConstVal; global() member
[all...]
/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DSyntheticTypeNameBuilder.cpp48 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) { in addArrayDimension() local
49 SyntheticName += std::to_string(*ConstVal); in addArrayDimension()
50 } else if (std::optional<int64_t> ConstVal = in addArrayDimension() local
52 SyntheticName += std::to_string(*ConstVal); in addArrayDimension()
142 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) in addTemplateParamNames() local
143 SyntheticName += std::to_string(*ConstVal); in addTemplateParamNames()
144 else if (std::optional<int64_t> ConstVal = Val->getAsSignedConstant()) in addTemplateParamNames() local
145 SyntheticName += std::to_string(*ConstVal); in addTemplateParamNames()
267 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) { in addValueName() local
269 SyntheticName += std::to_string(*ConstVal); in addValueName()
[all …]
/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h71 const Constant *ConstVal; member
82 Val.ConstVal = V; in MachineConstantPoolEntry()
H A DSDPatternMatch.h1057 APInt ConstVal;
1058 if (sd_match(N, m_ConstInt(ConstVal)))
1061 return ConstVal.isOne();
1063 return ConstVal.isAllOnes();
1065 return (ConstVal & 0x01) == 1;
1077 APInt ConstVal;
1078 if (sd_match(N, m_ConstInt(ConstVal)))
1082 return ConstVal.isZero();
1084 return (ConstVal & 0x01) == 0;
H A DSelectionDAGNodes.h2006 const Constant *ConstVal;
2019 Val.ConstVal = c;
2039 return Val.ConstVal;
/llvm-project/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp168 Constant *ConstVal = cast<Constant>(Cond.first->getOperand(1)); in addConditions() local
170 setConstantInArgument(CB, Arg, ConstVal); in addConditions()
171 else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) { in addConditions()
/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp510 Value *ConstVal = LastVisited->second; in getConstantStackValue()
513 std::swap(ConstVal, OtherVal); in getConstantStackValue()
516 simplifyBinOp(I.getOpcode(), ConstVal, OtherVal, SimplifyQuery(DL))); in getConstantStackValue()
553 if (auto *ConstVal = dyn_cast<ConstantInt>(Val)) in promoteConstantStackValues()
554 return ConstVal; in promoteConstantStackValues()
602 auto *ConstVal = getConstantStackValue(Call, ArgOp); in getTombstoneKey()
603 if (!ConstVal)
606 Value *GV = new GlobalVariable(M, ConstVal->getType(), true, in getHashValue()
607 GlobalValue::InternalLinkage, ConstVal,
515 if (auto *ConstVal = dyn_cast<ConstantInt>(Val)) getConstantStackValue() local
564 auto *ConstVal = getConstantStackValue(Call, ArgOp); promoteConstantStackValues() local
/llvm-project/llvm/unittests/CodeGen/
H A DSelectionDAGPatternMatchTest.cpp463 APInt ConstVal;
464 EXPECT_TRUE(sd_match(ConstSplat, m_ConstInt(ConstVal)));
465 EXPECT_EQ(ConstVal, 3);
469 EXPECT_TRUE(sd_match(Const3, m_SpecificInt(ConstVal)));
226 APInt ConstVal; TEST_F() local
/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp204 if (Register ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local
206 return ConstVal; in GetValueInMiddleOfBlock()
H A DMachineFunction.cpp1454 return DL.getTypeAllocSize(Val.ConstVal->getType()); in CanShareConstantPoolEntry()
1460 return Val.ConstVal->needsDynamicRelocation(); in CanShareConstantPoolEntry()
1559 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) {
1595 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false);
/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86LegalizerInfo.cpp691 Constant *ConstVal = ConstantVector::get(CstIdxs);
695 Align Alignment(DL.getABITypeAlign(ConstVal->getType()));
698 MF.getConstantPool()->getConstantPoolIndex(ConstVal, Alignment));
630 Constant *ConstVal = ConstantVector::get(CstIdxs); legalizeBuildVector() local
/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp515 auto *ConstVal = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateIntCompositeOrNull()
517 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateIntCompositeOrNull()
519 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW, in getOrCreateIntCompositeOrNull()
534 auto *ConstVal = ConstantFP::get(LLVMBaseTy, Val); in getOrCreateIntCompositeOrNull()
536 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateIntCompositeOrNull()
538 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW,
449 auto *ConstVal = ConstantInt::get(LLVMBaseTy, Val); getOrCreateConstVector() local
468 auto *ConstVal = ConstantFP::get(LLVMBaseTy, Val); getOrCreateConstVector() local
H A DSPIRVInstructionSelector.cpp3793 const Constant *ConstVal = GV;
3795 Register NewReg = GR.find(ConstVal, GR.CurMF);
3798 GR.add(ConstVal, GR.CurMF, NewReg);
2230 const Constant *ConstVal = GV; selectGlobalValue() local
/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaAsmPrinter.cpp119 const Constant *C = CPE.Val.ConstVal; in emitMachineConstantPoolEntry()
/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYAsmPrinter.cpp118 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitCustomConstantPool()
/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h537 /// element of a constant G_BUILD_VECTOR. If \p ConstVal is null, the source
540 std::function<bool(const Constant *ConstVal)> Match,
/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVLegalizerInfo.cpp1336 const ConstantInt *ConstVal = MI.getOperand(1).getCImm();
1337 if (!shouldBeInConstantPool(ConstVal->getValue(), ShouldOptForSize))
784 const ConstantInt *ConstVal = MI.getOperand(1).getCImm(); legalizeCustom() local
/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp2271 if (auto ConstVal = Expr->getIntegerConstantExpr(Ctx)) { in FixVarInitializerWithSpan()
2272 if (ConstVal->isNegative()) in FixVarInitializerWithSpan()
2571 if (auto ConstVal = Offset->getIntegerConstantExpr(Ctx)) in createOverloadsForFixedParams()
2572 if (ConstVal->isNegative()) in createOverloadsForFixedParams()
1665 if (auto ConstVal = Expr->getIntegerConstantExpr(Ctx)) { isNonNegativeIntegerExpr() local
1964 if (auto ConstVal = Offset->getIntegerConstantExpr(Ctx)) getFixits() local
/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1661 auto *ConstVal = ConstantArray::get(ArrTy, Args); in createMustTailCall()
1662 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in createMustTailCall()
1663 GlobalVariable::PrivateLinkage, ConstVal, in createMustTailCall()
1613 auto *ConstVal = ConstantArray::get(ArrTy, Args); setCoroInfo() local
/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp149 std::optional<ValueAndVReg> ConstVal = in selectCOPY()
151 if (ConstVal) { in selectCOPY()
155 .addImm(ConstVal->Value.getBoolValue() ? -1 : 0); in selectCOPY()
1039 std::optional<ValueAndVReg> ConstVal = in selectG_INTRINSIC()
1044 if (ConstVal && AMDGPU::isInlinableLiteral32(ConstVal->Value.getSExtValue(), in selectG_INTRINSIC()
1046 MIB.addImm(ConstVal->Value.getSExtValue()); in selectG_INTRINSIC()
150 std::optional<ValueAndVReg> ConstVal = selectCOPY() local
942 std::optional<ValueAndVReg> ConstVal = selectWritelane() local
/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp6216 Constant *ConstVal =
6218 if (!ConstVal)
6222 if (!validLookupTableConstant(ConstVal, TTI))
6225 Res.push_back(std::make_pair(&PHI, ConstVal));
6569 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]);
6571 if (!ConstVal && isa<PoisonValue>(TableContents[I])) {
6577 ConstVal = dyn_cast<ConstantInt>(Values[0].second); in reuseTableCompare()
6580 if (!ConstVal) { in reuseTableCompare()
6586 const APInt &Val = ConstVal->getValue(); in reuseTableCompare()
5957 Constant *ConstVal = getCaseResults() local
6307 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); SwitchLookupTable() local
/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2206 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildArrayType()
2221 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildArrayType()
2243 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildArrayType()
2254 if (ConstVal == 0 && !T.isWebAssemblyReferenceType()) { in BuildArrayType()
2267 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal) in BuildArrayType()
2268 : ConstVal.getActiveBits(); in BuildArrayType()
2271 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildArrayType()
2275 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildArrayType()
2185 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); BuildArrayType() local
/llvm-project/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp227 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
/llvm-project/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp1386 Offset = cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue(); in EmitUnwindingInstruction()
1822 emitGlobalConstant(DL, MCPE.Val.ConstVal); in emitInstruction()

12