Home
last modified time | relevance | path

Searched refs:ConstantValue (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineSSAContext.cpp75 Register ConstantValue; in isConstantOrUndefValuePhi() local
79 if (ConstantValue && ConstantValue != Incoming) in isConstantOrUndefValuePhi()
81 ConstantValue = Incoming; in isConstantOrUndefValuePhi()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DGVNExpression.h596 Constant *ConstantValue = nullptr;
601 : Expression(ET_Constant), ConstantValue(constantValue) {} in ConstantExpression()
609 Constant *getConstantValue() const { return ConstantValue; } in getConstantValue()
610 void setConstantValue(Constant *V) { ConstantValue = V; } in setConstantValue()
614 return ConstantValue == OC.ConstantValue; in equals()
619 ConstantValue->getType(), ConstantValue); in getHashValue()
627 OS << " constant = " << *ConstantValue; in printInternal()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.cpp100 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateExtraSGPRs() argument
105 ConstantValue = MCVal.getConstant(); in evaluateExtraSGPRs()
129 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateTotalNumVGPR() argument
134 ConstantValue = MCVal.getConstant(); in evaluateTotalNumVGPR()
155 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateAlignTo() argument
160 ConstantValue = MCVal.getConstant(); in evaluateAlignTo()
176 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateOccupancy() argument
181 ConstantValue = MCVal.getConstant(); in evaluateOccupancy()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstructions.cpp212 Value *ConstantValue = getIncomingValue(0); in hasConstantValue() local
214 if (getIncomingValue(i) != ConstantValue && getIncomingValue(i) != this) { in hasConstantValue()
215 if (ConstantValue != this) in hasConstantValue()
218 ConstantValue = getIncomingValue(i); in hasConstantValue()
220 if (ConstantValue == this) in hasConstantValue()
222 return ConstantValue; in hasConstantValue()
231 Value *ConstantValue = nullptr; in hasConstantOrUndefValue() local
235 if (ConstantValue && ConstantValue != Incoming) in hasConstantOrUndefValue()
237 ConstantValue = Incoming; in hasConstantOrUndefValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.h114 std::optional<APSInt> ConstantValue; member
H A DCodeViewDebug.cpp1379 Var.ConstantValue = APSInt(APInt(64, Op.getImm()), false); in calculateRanges()
2848 if (L.ConstantValue) { in emitLocalVariableList()
2852 APSInt Val(*L.ConstantValue); in emitLocalVariableList()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DOverload.h461 APValue &ConstantValue, QualType &ConstantType,
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOverload.cpp359 ASTContext &Ctx, const Expr *Converted, APValue &ConstantValue, in getNarrowingKind() argument
419 ConstantValue = APValue(*IntConstantValue); in getNarrowingKind()
446 Initializer->isCXX11ConstantExpr(Ctx, &ConstantValue)) { in getNarrowingKind()
449 ConstantValue = R.Val; in getNarrowingKind()
450 assert(ConstantValue.isFloat()); in getNarrowingKind()
451 llvm::APFloat FloatVal = ConstantValue.getFloat(); in getNarrowingKind()
571 ConstantValue = APValue(InitializerValue); in getNarrowingKind()
587 ConstantValue = R.Val; in getNarrowingKind()
588 assert(ConstantValue.isFloat()); in getNarrowingKind()
589 llvm::APFloat FloatVal = ConstantValue.getFloat(); in getNarrowingKind()
H A DSemaInit.cpp9755 APValue ConstantValue; in DiagnoseNarrowingInInitList() local
9757 switch (SCS->getNarrowingKind(S.Context, PostInit, ConstantValue, in DiagnoseNarrowingInInitList()
9783 << ConstantValue.getAsString(S.getASTContext(), ConstantType) in DiagnoseNarrowingInInitList()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp14904 SDValue ConstantValue; in LowerBUILD_VECTOR() local
14923 if (!ConstantValue.getNode()) in LowerBUILD_VECTOR()
14924 ConstantValue = V; in LowerBUILD_VECTOR()
14925 else if (ConstantValue != V) in LowerBUILD_VECTOR()
15094 SDValue Val = DAG.getSplatBuildVector(VT, DL, ConstantValue); in LowerBUILD_VECTOR()
15097 if (auto *C = dyn_cast<ConstantSDNode>(ConstantValue)) in LowerBUILD_VECTOR()
15099 if (!isNullConstant(ConstantValue) && !isNullFPConstant(ConstantValue) && in LowerBUILD_VECTOR()
15104 Val = DAG.getNode(AArch64ISD::DUP, DL, VT, ConstantValue); in LowerBUILD_VECTOR()