Home
last modified time | relevance | path

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

12

/freebsd-src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h89 Constant *ConstVal; member
147 // ConstVal and Range are initialized on-demand.
162 ConstVal = Other.ConstVal; in ValueLatticeElement()
181 ConstVal = Other.ConstVal; in ValueLatticeElement()
257 return ConstVal; in getConstant()
262 return ConstVal; in getNotConstant()
332 ConstVal = V; in markNotConstant()
352 ConstVal
[all...]
/freebsd-src/contrib/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 …]
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h71 const Constant *ConstVal; member
82 Val.ConstVal = V; in MachineConstantPoolEntry()
H A DSelectionDAGNodes.h1972 const Constant *ConstVal;
1985 Val.ConstVal = c;
2005 return Val.ConstVal;
/freebsd-src/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-src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp515 if (auto *ConstVal = dyn_cast<ConstantInt>(Val)) in getConstantStackValue() local
516 return ConstVal; in getConstantStackValue()
564 auto *ConstVal = getConstantStackValue(Call, ArgOp); in promoteConstantStackValues() local
565 if (!ConstVal) in promoteConstantStackValues()
568 Value *GV = new GlobalVariable(M, ConstVal->getType(), true, in promoteConstantStackValues()
569 GlobalValue::InternalLinkage, ConstVal, in promoteConstantStackValues()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp204 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock()
206 return ConstVal; in GetValueInMiddleOfBlock()
209 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { GetValueInMiddleOfBlock() local
H A DMachineFunction.cpp1383 return DL.getTypeAllocSize(Val.ConstVal->getType()); in getSectionKind()
1389 return Val.ConstVal->needsDynamicRelocation(); in getSectionKind()
1488 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) { in getConstantPoolIndex()
1524 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false); in getEntryCount()
H A DMIRPrinter.cpp586 Constant.Val.ConstVal->printAsOperand(StrOS); in convert()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYAsmPrinter.cpp118 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitCustomConstantPool()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h522 /// element of a constant G_BUILD_VECTOR. If \p ConstVal is null, the source
525 std::function<bool(const Constant *ConstVal)> Match,
/freebsd-src/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp1665 if (auto ConstVal = Expr->getIntegerConstantExpr(Ctx)) { in getFunNameText()
1666 if (ConstVal->isNegative()) in getFunNameText()
1964 if (auto ConstVal = Offset->getIntegerConstantExpr(Ctx)) in FixVarInitializerWithSpan()
1965 if (ConstVal->isNegative()) in FixVarInitializerWithSpan()
1386 if (auto ConstVal = Expr->getIntegerConstantExpr(Ctx)) { isNonNegativeIntegerExpr() local
1692 if (auto ConstVal = Offset->getIntegerConstantExpr(Ctx)) getFixits() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1614 auto *ConstVal = ConstantArray::get(ArrTy, Args); in simplifySuspendPoint()
1615 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in simplifySuspendPoint()
1616 GlobalVariable::PrivateLinkage, ConstVal, in simplifySuspendPoint()
1238 auto *ConstVal = ConstantArray::get(ArrTy, Args); setCoroInfo() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp2230 const Constant *ConstVal = GV;
2232 Register NewReg = GR.find(ConstVal, GR.CurMF);
2235 GR.add(ConstVal, GR.CurMF, NewReg);
1528 const Constant *ConstVal = GV; selectGlobalValue() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5962 Constant *ConstVal = in foldSwitchToSelect()
5964 if (!ConstVal) in foldSwitchToSelect()
5968 if (!ValidLookupTableConstant(ConstVal, TTI)) in foldSwitchToSelect()
5971 Res.push_back(std::make_pair(&PHI, ConstVal)); in foldSwitchToSelect()
6312 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); in BuildLookup()
6313 if (!ConstVal) { in BuildLookup()
6319 const APInt &Val = ConstVal->getValue(); in BuildLookup()
5867 Constant *ConstVal = getCaseResults() local
6217 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); SwitchLookupTable() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp150 std::optional<ValueAndVReg> ConstVal = in selectCOPY()
152 if (ConstVal) { in selectCOPY()
156 .addImm(ConstVal->Value.getBoolValue() ? -1 : 0); in selectCOPY()
942 std::optional<ValueAndVReg> ConstVal = in selectWritelane()
947 if (ConstVal && AMDGPU::isInlinableLiteral32(ConstVal->Value.getSExtValue(), in selectWritelane()
949 MIB.addImm(ConstVal->Value.getSExtValue()); in selectWritelane()
155 std::optional<ValueAndVReg> ConstVal = selectCOPY() local
952 std::optional<ValueAndVReg> ConstVal = selectWritelane() local
H A DAMDGPULegalizerInfo.cpp4212 auto ConstVal = getIConstantVRegSExtVal(MI.getOperand(2).getReg(), MRI); in loadInputValue()
4213 return ConstVal && *ConstVal == -1; in loadInputValue()
4097 auto ConstVal = getIConstantVRegSExtVal(MI.getOperand(2).getReg(), MRI); isNot() local
H A DAMDGPURegisterBankInfo.cpp2205 uint64_t ConstVal = MI.getOperand(1).getCImm()->getZExtValue(); in applyMappingImpl()
2207 ConstantInt::get(IntegerType::getInt32Ty(Ctx), ConstVal)); in applyMappingImpl()
2206 uint64_t ConstVal = MI.getOperand(1).getCImm()->getZExtValue(); applyMappingImpl() local
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2185 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildPointerType()
2200 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildPointerType()
2222 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildPointerType()
2233 if (ConstVal == 0 && !T.isWebAssemblyReferenceType()) { in BuildPointerType()
2246 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal)
2247 : ConstVal.getActiveBits();
2250 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildReferenceType()
2254 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildReferenceType()
2638 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); BuildArrayType() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp231 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
/freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp1384 Offset = cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue(); in EmitUnwindingInstruction()
1818 emitGlobalConstant(DL, MCPE.Val.ConstVal); in emitInstruction()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2635 C = CPE.Val.ConstVal; in emitConstantPool()
2689 emitGlobalConstant(getDataLayout(), CPE.Val.ConstVal); in emitJumpTableInfo()
3841 const Constant *C = CPE.Val.ConstVal; in GetCPISymbol()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1563 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) {
H A DCombinerHelper.cpp3557 auto ConstVal = getIConstantVRegVal(PtrAdd.getBaseReg(), MRI); in findCandidatesForLoadOrCombine()
3558 return ConstVal && *ConstVal == 0; in findCandidatesForLoadOrCombine()
3413 auto ConstVal = getIConstantVRegVal(PtrAdd.getBaseReg(), MRI); matchPtrAddZero() local
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp5451 const APInt *ConstVal = ExpRange.getSingleElement(); in BuildSubAggregate()
5452 if (ConstVal && ConstVal->isZero()) { in BuildSubAggregate()
4839 const APInt *ConstVal = ExpRange.getSingleElement(); computeKnownFPClass() local

12