| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 89 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 D | MachineConstantPool.h | 71 const Constant *ConstVal; member 82 Val.ConstVal = V; in MachineConstantPoolEntry()
|
| H A D | SDPatternMatch.h | 794 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 D | SelectionDAGNodes.h | 1972 const Constant *ConstVal; 1985 Val.ConstVal = c; 2005 return Val.ConstVal;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | CallSiteSplitting.cpp | 168 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 D | FunctionSpecialization.cpp | 515 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 D | MachineSSAUpdater.cpp | 204 if (unsigned ConstVal = InsertedPHI->isConstantValuePHI()) { in GetValueInMiddleOfBlock() local 206 return ConstVal; in GetValueInMiddleOfBlock()
|
| H A D | MachineFunction.cpp | 1383 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 D | MIRPrinter.cpp | 586 Constant.Val.ConstVal->printAsOperand(StrOS); in convert()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/GISel/ |
| H A D | X86LegalizerInfo.cpp | 630 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 D | SPIRVGlobalRegistry.cpp | 449 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 D | SPIRVInstructionSelector.cpp | 2230 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 D | XtensaAsmPrinter.cpp | 115 const Constant *C = CPE.Val.ConstVal; in emitMachineConstantPoolEntry()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/ |
| H A D | CSKYAsmPrinter.cpp | 118 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitCustomConstantPool()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | Utils.h | 525 std::function<bool(const Constant *ConstVal)> Match,
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/ |
| H A D | RISCVLegalizerInfo.cpp | 784 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 D | UnsafeBufferUsage.cpp | 1665 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 D | CoroSplit.cpp | 1614 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 D | SimplifyCFG.cpp | 5962 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 D | AMDGPUInstructionSelector.cpp | 150 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 D | SemaType.cpp | 2185 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 D | MipsAsmPrinter.cpp | 231 emitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal); in emitInstruction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMAsmPrinter.cpp | 1384 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 D | AsmPrinter.cpp | 2635 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 D | Utils.cpp | 1563 std::function<bool(const Constant *ConstVal)> Match, bool AllowUndefs) { in matchUnaryPredicate()
|