Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DValueLattice.h89 Constant *ConstVal; member
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;
352 ConstVal = V; in markNotConstant()
/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.h794 APInt ConstVal;
795 if (sd_match(N, m_ConstInt(ConstVal)))
798 return ConstVal.isOne();
800 return ConstVal.isAllOnes();
802 return (ConstVal & 0x01) == 1;
814 APInt ConstVal;
815 if (sd_match(N, m_ConstInt(ConstVal)))
819 return ConstVal.isZero();
821 return (ConstVal & 0x01) == 0;
H A DSelectionDAGNodes.h1972 const Constant *ConstVal;
1985 Val.ConstVal = c;
2005 return Val.ConstVal;
/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/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/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp204 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local
206 return ConstVal; in GetValueInMiddleOfBlock()
H A DMachineFunction.cpp1383 return DL.getTypeAllocSize(Val.ConstVal->getType()); in getSizeInBytes()
1389 return Val.ConstVal->needsDynamicRelocation(); in needsRelocation()
1488 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) { in getConstantPoolIndex()
1524 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false); in print()
H A DMIRPrinter.cpp586 Constant.Val.ConstVal->printAsOperand(StrOS); in convert()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/
H A DX86LegalizerInfo.cpp630 Constant *ConstVal = ConstantVector::get(CstIdxs); in legalizeBuildVector() local
634 Align Alignment(DL.getABITypeAlign(ConstVal->getType())); in legalizeBuildVector()
637 MF.getConstantPool()->getConstantPoolIndex(ConstVal, Alignment)); in legalizeBuildVector()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp449 auto *ConstVal = ConstantInt::get(LLVMBaseTy, Val); in getOrCreateConstVector() local
451 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector()
453 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW, in getOrCreateConstVector()
468 auto *ConstVal = ConstantFP::get(LLVMBaseTy, Val); in getOrCreateConstVector() local
470 ConstantVector::getSplat(LLVMVecTy->getElementCount(), ConstVal); in getOrCreateConstVector()
472 return getOrCreateCompositeOrNull(ConstVal, I, SpvType, TII, ConstVec, BW, in getOrCreateConstVector()
H A DSPIRVInstructionSelector.cpp2230 const Constant *ConstVal = GV; in selectGlobalValue() local
2232 Register NewReg = GR.find(ConstVal, GR.CurMF); in selectGlobalValue()
2235 GR.add(ConstVal, GR.CurMF, NewReg); in selectGlobalValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaAsmPrinter.cpp115 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/include/llvm/CodeGen/GlobalISel/
H A DUtils.h525 std::function<bool(const Constant *ConstVal)> Match,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVLegalizerInfo.cpp784 const ConstantInt *ConstVal = MI.getOperand(1).getCImm(); in legalizeCustom() local
785 if (!shouldBeInConstantPool(ConstVal->getValue(), ShouldOptForSize)) in legalizeCustom()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp1665 if (auto ConstVal = Expr->getIntegerConstantExpr(Ctx)) { in isNonNegativeIntegerExpr() local
1666 if (ConstVal->isNegative()) in isNonNegativeIntegerExpr()
1964 if (auto ConstVal = Offset->getIntegerConstantExpr(Ctx)) in getFixits() local
1965 if (ConstVal->isNegative()) in getFixits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1614 auto *ConstVal = ConstantArray::get(ArrTy, Args); in setCoroInfo() local
1615 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in setCoroInfo()
1616 GlobalVariable::PrivateLinkage, ConstVal, in setCoroInfo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5962 Constant *ConstVal = in getCaseResults() local
5964 if (!ConstVal) in getCaseResults()
5968 if (!ValidLookupTableConstant(ConstVal, TTI)) in getCaseResults()
5971 Res.push_back(std::make_pair(&PHI, ConstVal)); in getCaseResults()
6312 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); in SwitchLookupTable() local
6313 if (!ConstVal) { in SwitchLookupTable()
6319 const APInt &Val = ConstVal->getValue(); in SwitchLookupTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp150 std::optional<ValueAndVReg> ConstVal = in selectCOPY() local
152 if (ConstVal) { in selectCOPY()
156 .addImm(ConstVal->Value.getBoolValue() ? -1 : 0); in selectCOPY()
942 std::optional<ValueAndVReg> ConstVal = in selectWritelane() local
947 if (ConstVal && AMDGPU::isInlinableLiteral32(ConstVal->Value.getSExtValue(), in selectWritelane()
949 MIB.addImm(ConstVal->Value.getSExtValue()); in selectWritelane()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2185 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildArrayType() local
2200 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildArrayType()
2222 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildArrayType()
2233 if (ConstVal == 0 && !T.isWebAssemblyReferenceType()) { in BuildArrayType()
2246 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal) in BuildArrayType()
2247 : ConstVal.getActiveBits(); in BuildArrayType()
2250 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildArrayType()
2254 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildArrayType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp231 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
/freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2635 C = CPE.Val.ConstVal; in emitConstantPool()
2689 emitGlobalConstant(getDataLayout(), CPE.Val.ConstVal); in emitConstantPool()
3841 const Constant *C = CPE.Val.ConstVal; in GetCPISymbol()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1563 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) { in matchUnaryPredicate()

12