Home
last modified time | relevance | path

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

12

/freebsd-13.1/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()
258 return ConstVal; in getConstant()
263 return ConstVal; in getNotConstant()
318 ConstVal = V;
338 ConstVal = V; in markNotConstant()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h71 const Constant *ConstVal; member
82 Val.ConstVal = V; in MachineConstantPoolEntry()
H A DSelectionDAGNodes.h1828 const Constant *ConstVal;
1841 Val.ConstVal = c;
1861 return Val.ConstVal;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp170 Constant *ConstVal = cast<Constant>(Cond.first->getOperand(1)); in addConditions() local
172 setConstantInArgument(CB, Arg, ConstVal); in addConditions()
173 else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) { in addConditions()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp199 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local
201 return ConstVal; in GetValueInMiddleOfBlock()
H A DMachineFunction.cpp1352 return DL.getTypeAllocSize(Val.ConstVal->getType()); in getSizeInBytes()
1358 return Val.ConstVal->needsDynamicRelocation(); in needsRelocation()
1448 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) { in getConstantPoolIndex()
1484 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false); in print()
H A DMIRPrinter.cpp562 Constant.Val.ConstVal->printAsOperand(StrOS); in convert()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h385 std::function<bool(const Constant *ConstVal)> Match,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp142 Optional<ValueAndVReg> ConstVal = in selectCOPY() local
144 if (ConstVal) { in selectCOPY()
148 .addImm(ConstVal->Value.getBoolValue() ? -1 : 0); in selectCOPY()
855 Optional<ValueAndVReg> ConstVal = in selectWritelane() local
860 if (ConstVal && AMDGPU::isInlinableLiteral32(ConstVal->Value.getSExtValue(), in selectWritelane()
862 MIB.addImm(ConstVal->Value.getSExtValue()); in selectWritelane()
H A DAMDGPULegalizerInfo.cpp2752 auto ConstVal = getConstantVRegSExtVal(MI.getOperand(2).getReg(), MRI); in isNot() local
2753 return ConstVal && *ConstVal == -1; in isNot()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1107 auto *ConstVal = ConstantArray::get(ArrTy, Args); in setCoroInfo() local
1108 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in setCoroInfo()
1109 GlobalVariable::PrivateLinkage, ConstVal, in setCoroInfo()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5175 Constant *ConstVal = in GetCaseResults() local
5177 if (!ConstVal) in GetCaseResults()
5181 if (!ValidLookupTableConstant(ConstVal, TTI)) in GetCaseResults()
5184 Res.push_back(std::make_pair(&PHI, ConstVal)); in GetCaseResults()
5494 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); in SwitchLookupTable() local
5495 if (!ConstVal) { in SwitchLookupTable()
5501 const APInt &Val = ConstVal->getValue(); in SwitchLookupTable()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2460 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildArrayType() local
2475 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildArrayType()
2497 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildArrayType()
2508 if (ConstVal == 0) { in BuildArrayType()
2521 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal) in BuildArrayType()
2522 : ConstVal.getActiveBits(); in BuildArrayType()
2525 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildArrayType()
2529 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildArrayType()
H A DSemaInit.cpp204 llvm::APInt ConstVal(32, StrLength); in CheckStringInit() local
207 ConstVal, nullptr, in CheckStringInit()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp1265 Offset = cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue(); in EmitUnwindingInstruction()
1677 emitGlobalConstant(DL, MCPE.Val.ConstVal); in emitInstruction()
H A DARMBaseInstrInfo.cpp1868 return MCPE0.Val.ConstVal == MCPE1.Val.ConstVal; in produceSameValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp953 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) { in matchUnaryPredicate()
H A DCombinerHelper.cpp3357 auto ConstVal = getConstantVRegVal(MI.getOperand(1).getReg(), MRI); in matchPtrAddZero() local
3358 return ConstVal && *ConstVal == 0; in matchPtrAddZero()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2035 C = CPE.Val.ConstVal; in emitConstantPool()
2089 emitGlobalConstant(getDataLayout(), CPE.Val.ConstVal); in emitConstantPool()
3128 const Constant *C = CPE.Val.ConstVal; in GetCPISymbol()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp231 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp1787 return ConstantEntry.Val.ConstVal; in getConstantFromPool()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.cpp3571 llvm::APInt ConstVal(32, 1); in collectVarDeclProps() local
3574 T = CGM.getContext().getConstantArrayType(ET, ConstVal, nullptr, in collectVarDeclProps()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp17018 int64_t ConstVal = CI->getZExtValue(); in isMaskAndCmp0FoldingBeneficial() local
17019 return isUInt<16>(ConstVal) || in isMaskAndCmp0FoldingBeneficial()
17020 (isUInt<16>(ConstVal >> 16) && !(ConstVal & 0xFFFF)); in isMaskAndCmp0FoldingBeneficial()
H A DPPCInstrInfo.cpp754 return (MCP->getConstants())[MO2.getIndex()].Val.ConstVal; in getConstantFromConstantPool()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp9526 if (auto *ConstVal = dyn_cast<ConstantSDNode>(SplatVal)) { in LowerSPLAT_VECTOR() local
9527 if (ConstVal->isOne()) in LowerSPLAT_VECTOR()
9827 uint64_t &ConstVal) { in isAllConstantBuildVector() argument
9839 ConstVal = FirstElt->getZExtValue(); in isAllConstantBuildVector()

12