Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/utils/
H A Dllvm.grm249 | 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 ^ ")"
256 | shufflevector "(" ^ ConstVal ^ "," ConstVal ^ "," ConstVal ^ ")"
258 | insertvalue "(" ^ ConstVal ^ "," ConstVal ^ ConstantIndexList ^ ")" ;
260 ConstVector ::= ConstVector ^ "," ConstVal | ConstVal ;
[all …]
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DValueLattice.h89 Constant *ConstVal; member
162 ConstVal = Other.ConstVal; in ValueLatticeElement()
181 ConstVal = Other.ConstVal; in ValueLatticeElement()
260 return ConstVal; in getConstant()
265 return ConstVal; in getNotConstant()
320 ConstVal = V;
340 ConstVal = V; in markNotConstant()
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp139 if (auto *ConstVal = dyn_cast<ConstantInt>(Val)) in getConstantStackValue() local
140 return ConstVal; in getConstantStackValue()
194 auto *ConstVal = getConstantStackValue(Call, ArgOp); in promoteConstantStackValues() local
195 if (!ConstVal) in promoteConstantStackValues()
198 Value *GV = new GlobalVariable(M, ConstVal->getType(), true, in promoteConstantStackValues()
199 GlobalValue::InternalLinkage, ConstVal, in promoteConstantStackValues()
201 if (ArgOpType != ConstVal->getType()) in promoteConstantStackValues()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h71 const Constant *ConstVal; member
82 Val.ConstVal = V; in MachineConstantPoolEntry()
H A DSelectionDAGNodes.h1891 const Constant *ConstVal;
1904 Val.ConstVal = c;
1924 return Val.ConstVal;
/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp209 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local
211 return ConstVal; in GetValueInMiddleOfBlock()
H A DMachineFunction.cpp1355 return DL.getTypeAllocSize(Val.ConstVal->getType()); in getSizeInBytes()
1361 return Val.ConstVal->needsDynamicRelocation(); in needsRelocation()
1451 CanShareConstantPoolEntry(Constants[i].Val.ConstVal, C, DL)) { in getConstantPoolIndex()
1487 Constants[i].Val.ConstVal->printAsOperand(OS, /*PrintType=*/false); in print()
H A DMIRPrinter.cpp565 Constant.Val.ConstVal->printAsOperand(StrOS); in convert()
/openbsd/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYAsmPrinter.cpp118 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitCustomConstantPool()
/openbsd/gnu/llvm/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h486 std::function<bool(const Constant *ConstVal)> Match,
/openbsd/gnu/llvm/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1163 auto *ConstVal = ConstantArray::get(ArrTy, Args); in setCoroInfo() local
1164 auto *GV = new GlobalVariable(*M, ConstVal->getType(), /*isConstant=*/true, in setCoroInfo()
1165 GlobalVariable::PrivateLinkage, ConstVal, in setCoroInfo()
/openbsd/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp1486 const Constant *ConstVal = GV; in selectGlobalValue() local
1488 Register NewReg = GR.find(ConstVal, GR.CurMF); in selectGlobalValue()
1493 GR.add(ConstVal, GR.CurMF, NewReg); in selectGlobalValue()
/openbsd/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp147 std::optional<ValueAndVReg> ConstVal = in selectCOPY() local
149 if (ConstVal) { in selectCOPY()
153 .addImm(ConstVal->Value.getBoolValue() ? -1 : 0); in selectCOPY()
987 std::optional<ValueAndVReg> ConstVal = in selectWritelane() local
992 if (ConstVal && AMDGPU::isInlinableLiteral32(ConstVal->Value.getSExtValue(), in selectWritelane()
994 MIB.addImm(ConstVal->Value.getSExtValue()); in selectWritelane()
H A DAMDGPULegalizerInfo.cpp3201 auto ConstVal = getIConstantVRegSExtVal(MI.getOperand(2).getReg(), MRI); in isNot() local
3202 return ConstVal && *ConstVal == -1; in isNot()
H A DAMDGPURegisterBankInfo.cpp2145 uint64_t ConstVal = MI.getOperand(1).getCImm()->getZExtValue(); in applyMappingImpl() local
2147 ConstantInt::get(IntegerType::getInt32Ty(Ctx), ConstVal)); in applyMappingImpl()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5725 Constant *ConstVal = in getCaseResults() local
5727 if (!ConstVal) in getCaseResults()
5731 if (!ValidLookupTableConstant(ConstVal, TTI)) in getCaseResults()
5734 Res.push_back(std::make_pair(&PHI, ConstVal)); in getCaseResults()
6071 ConstantInt *ConstVal = dyn_cast<ConstantInt>(TableContents[I]); in SwitchLookupTable() local
6072 if (!ConstVal) { in SwitchLookupTable()
6078 const APInt &Val = ConstVal->getValue(); in SwitchLookupTable()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaType.cpp2554 llvm::APSInt ConstVal(Context.getTypeSize(Context.getSizeType())); in BuildArrayType() local
2569 checkArraySize(*this, ArraySize, ConstVal, VLADiag, VLAIsError); in BuildArrayType()
2591 if (ConstVal.isSigned() && ConstVal.isNegative()) { in BuildArrayType()
2602 if (ConstVal == 0) { in BuildArrayType()
2615 ? ConstantArrayType::getNumAddressingBits(Context, T, ConstVal) in BuildArrayType()
2616 : ConstVal.getActiveBits(); in BuildArrayType()
2619 << toString(ConstVal, 10) << ArraySize->getSourceRange(); in BuildArrayType()
2623 T = Context.getConstantArrayType(T, ConstVal, ArraySize, ASM, Quals); in BuildArrayType()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMAsmPrinter.cpp1309 Offset = cast<ConstantInt>(CPE.Val.ConstVal)->getSExtValue(); in EmitUnwindingInstruction()
1726 emitGlobalConstant(DL, MCPE.Val.ConstVal); in emitInstruction()
/openbsd/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2417 C = CPE.Val.ConstVal; in emitConstantPool()
2471 emitGlobalConstant(getDataLayout(), CPE.Val.ConstVal); in emitConstantPool()
3583 const Constant *C = CPE.Val.ConstVal; in GetCPISymbol()
/openbsd/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp230 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
/openbsd/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1259 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) { in matchUnaryPredicate()
H A DCombinerHelper.cpp3145 auto ConstVal = getIConstantVRegVal(PtrAdd.getBaseReg(), MRI); in matchPtrAddZero() local
3146 return ConstVal && *ConstVal == 0; in matchPtrAddZero()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp1894 return ConstantEntry.Val.ConstVal; in getConstantFromPool()
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGDebugInfo.cpp3748 llvm::APInt ConstVal(32, 1); in collectVarDeclProps() local
3751 T = CGM.getContext().getConstantArrayType(ET, ConstVal, nullptr, in collectVarDeclProps()

12