Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h87 Constant *ConstVal; member
160 ConstVal = Other.ConstVal; in ValueLatticeElement()
179 ConstVal = Other.ConstVal; in ValueLatticeElement()
255 return ConstVal; in getConstant()
260 return ConstVal; in getNotConstant()
330 ConstVal = V;
350 ConstVal = V; in markNotConstant()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DFloatingPointPredicateUtils.cpp33 const APFloat *ConstVal; in matchConstantFloat() local
35 if (!match(Val, m_APFloatAllowPoison(ConstVal))) in matchConstantFloat()
38 return *ConstVal; in matchConstantFloat()
H A DInlineCost.cpp1807 if (auto *ConstVal = dyn_cast_or_null<ConstantInt>(SimplifiedInstruction)) { in simplifyCmpInstForRecCall() local
1810 if ((ConstVal->isOne() && CC.Invert) || in simplifyCmpInstForRecCall()
1811 (ConstVal->isZero() && !CC.Invert)) { in simplifyCmpInstForRecCall()
1812 SimplifiedValues[&Cmp] = ConstVal; in simplifyCmpInstForRecCall()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineFloatingPointPredicateUtils.cpp41 const ConstantFP *ConstVal; in matchConstantFloat() local
42 if (mi_match(Val, MRI, m_GFCst(ConstVal))) in matchConstantFloat()
43 return ConstVal->getValueAPF(); in matchConstantFloat()
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DSyntheticTypeNameBuilder.cpp47 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) { in addArrayDimension() local
48 SyntheticName += std::to_string(*ConstVal); in addArrayDimension()
49 } else if (std::optional<int64_t> ConstVal = in addArrayDimension() local
51 SyntheticName += std::to_string(*ConstVal); in addArrayDimension()
141 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) in addTemplateParamNames() local
142 SyntheticName += std::to_string(*ConstVal); in addTemplateParamNames()
143 else if (std::optional<int64_t> ConstVal = Val->getAsSignedConstant()) in addTemplateParamNames() local
144 SyntheticName += std::to_string(*ConstVal); in addTemplateParamNames()
266 if (std::optional<uint64_t> ConstVal = Val->getAsUnsignedConstant()) { in addValueName() local
268 SyntheticName += std::to_string(*ConstVal); in addValueName()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h71 const Constant *ConstVal; member
82 Val.ConstVal = V; in MachineConstantPoolEntry()
H A DSDPatternMatch.h1163 APInt ConstVal;
1164 if (sd_match(N, m_ConstInt(ConstVal)))
1167 return ConstVal.isOne();
1169 return ConstVal.isAllOnes();
1171 return (ConstVal & 0x01) == 1;
1183 APInt ConstVal;
1184 if (sd_match(N, m_ConstInt(ConstVal)))
1188 return ConstVal.isZero();
1190 return (ConstVal & 0x01) == 0;
H A DSelectionDAGNodes.h2085 const Constant *ConstVal;
2098 Val.ConstVal = c;
2118 return Val.ConstVal;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp510 Value *ConstVal = LastVisited->second; in visitBinaryOperator() local
513 std::swap(ConstVal, OtherVal); in visitBinaryOperator()
516 simplifyBinOp(I.getOpcode(), ConstVal, OtherVal, SimplifyQuery(DL))); in visitBinaryOperator()
553 if (auto *ConstVal = dyn_cast<ConstantInt>(Val)) in getConstantStackValue() local
554 return ConstVal; in getConstantStackValue()
602 auto *ConstVal = getConstantStackValue(Call, ArgOp); in promoteConstantStackValues() local
603 if (!ConstVal) in promoteConstantStackValues()
606 Value *GV = new GlobalVariable(M, ConstVal->getType(), true, in promoteConstantStackValues()
607 GlobalValue::InternalLinkage, ConstVal, in promoteConstantStackValues()
/freebsd/contrib/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()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp204 if (Register ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local
206 return ConstVal; in GetValueInMiddleOfBlock()
H A DStaticDataSplitter.cpp152 return CPE.Val.ConstVal; in getConstant()
H A DMachineFunction.cpp1453 return DL.getTypeAllocSize(Val.ConstVal->getType()); in getSizeInBytes()
1459 return Val.ConstVal->needsDynamicRelocation(); in needsRelocation()
1558 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) { in getConstantPoolIndex()
1594 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false); in print()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMLegalizerInfo.cpp442 const ConstantInt *ConstVal = MI.getOperand(1).getCImm(); in legalizeCustom() local
443 uint64_t ImmVal = ConstVal->getZExtValue(); in legalizeCustom()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86LegalizerInfo.cpp713 Constant *ConstVal = ConstantVector::get(CstIdxs); in legalizeBuildVector() local
717 Align Alignment(DL.getABITypeAlign(ConstVal->getType())); in legalizeBuildVector()
720 MF.getConstantPool()->getConstantPoolIndex(ConstVal, Alignment)); in legalizeBuildVector()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaAsmPrinter.cpp122 const Constant *C = CPE.Val.ConstVal; in emitMachineConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYAsmPrinter.cpp118 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitCustomConstantPool()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp607 APInt ConstVal = KBM[Expr].getConstant(); in tryFoldHelper() local
608 return MCConstantExpr::create(ConstVal.getSExtValue(), Ctx); in tryFoldHelper()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp540 auto *ConstVal = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConstVector() local
542 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector()
544 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW, in getOrCreateConstVector()
559 auto *ConstVal = ConstantFP::get(LLVMBaseTy, Val); in getOrCreateConstVector() local
561 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector()
563 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW, in getOrCreateConstVector()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h551 std::function<bool(const Constant *ConstVal)> Match,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankLegalizeHelper.cpp440 uint64_t ConstVal = MI.getOperand(1).getCImm()->getZExtValue(); in lower() local
441 B.buildConstant(MI.getOperand(0).getReg(), ConstVal); in lower()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64PostLegalizerLowering.cpp1049 auto ConstVal = in matchLowerBuildToInsertVecElt() local
1052 if (!ConstVal.has_value()) in matchLowerBuildToInsertVecElt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1648 auto *ConstVal = ConstantArray::get(ArrTy, Args); in setCoroInfo() local
1649 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in setCoroInfo()
1650 GlobalVariable::PrivateLinkage, ConstVal, in setCoroInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp6111 Constant *ConstVal = in getCaseResults() local
6113 if (!ConstVal) in getCaseResults()
6117 if (!validLookupTableConstant(ConstVal, TTI)) in getCaseResults()
6120 Res.push_back(std::make_pair(&PHI, ConstVal)); in getCaseResults()
6481 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); in SwitchLookupTable() local
6483 if (!ConstVal && isa<PoisonValue>(TableContents[I])) { in SwitchLookupTable()
6489 ConstVal = dyn_cast<ConstantInt>(Values[0].second); in SwitchLookupTable()
6492 if (!ConstVal) { in SwitchLookupTable()
6498 const APInt &Val = ConstVal->getValue(); in SwitchLookupTable()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2210 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildArrayType() local
2225 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildArrayType()
2247 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildArrayType()
2258 if (ConstVal == 0 && !T.isWebAssemblyReferenceType()) { in BuildArrayType()
2271 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal) in BuildArrayType()
2272 : ConstVal.getActiveBits(); in BuildArrayType()
2275 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildArrayType()
2279 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildArrayType()

123