Home
last modified time | relevance | path

Searched refs:APValue (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DAPValue.cpp47 APValue::LValueBase APValue::LValueBase::getDynamicAlloc(DynamicAllocLValue LV, in getDynamicAlloc()
55 APValue::LValueBase APValue::LValueBase::getTypeInfo(TypeInfoLValue LV, in getTypeInfo()
306 APValue::UnionData::UnionData() : Field(nullptr), Value(new APValue) {} in UnionData()
311 APValue::APValue(const APValue &RHS) : Kind(None) { in APValue() function in APValue
382 APValue::APValue(APValue &&RHS) : Kind(RHS.Kind), Data(RHS.Data) { in APValue() function in APValue
386 APValue &APValue::operator=(const APValue &RHS) { in operator =()
392 APValue &APValue::operator=(APValue &&RHS) { in operator =()
468 void APValue::swap(APValue &RHS) { in swap()
714 case APValue::Int: in printPretty()
970 const APValue::LValueBase APValue::getLValueBase() const { in getLValueBase()
[all …]
H A DExprConstant.cpp710 Cleanup(APValue *Val, APValue::LValueBase Base, QualType T, in Cleanup()
2619 APValue Val; in EvaluateAsBooleanCondition()
3474 Result = APValue(APValue::UninitArray(), in expandStringLiteral()
3497 APValue NewValue(APValue::UninitArray(), NewElts, Size); in expandArray()
7303 APValue ResultVal(APValue::UninitStruct(), NumBases, in visit()
8599 APValue *V; in VisitVarDecl()
8829 APValue RHS; in VisitCompoundAssignOperator()
10484 Result = APValue(APValue::UninitStruct(), 0, 2); in VisitCXXStdInitializerListExpr()
10671 APValue Val = APValue(); in VisitCastExpr()
10931 Result = APValue(APValue::UninitArray(), 0, 0); in ZeroInitialization()
[all …]
H A DTextNodeDumper.cpp440 case APValue::None: in isSimpleAPValue()
442 case APValue::Int: in isSimpleAPValue()
443 case APValue::Float: in isSimpleAPValue()
452 case APValue::Array: in isSimpleAPValue()
476 const APValue &(*IdxToChildFun)(const APValue &, unsigned), in dumpAPValueChildren() argument
510 case APValue::None: in Visit()
516 case APValue::Int: in Visit()
543 [](const APValue &Value, unsigned Index) -> const APValue & { in Visit()
576 [](const APValue &Value, unsigned Index) -> const APValue & { in Visit()
598 [](const APValue &Value, unsigned Index) -> const APValue & { in Visit()
[all …]
H A DExpr.cpp231 APValue &Value = Eval.Val; in getAsBuiltinConstantDeclRef()
294 case APValue::None: in getStorageKind()
295 case APValue::Indeterminate: in getStorageKind()
297 case APValue::Int: in getStorageKind()
324 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
354 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
380 case ConstantResultStorageKind::APValue: in MoveIntoResult()
409 return APValue( in getAPValueResult()
415 return APValue(); in getAPValueResult()
2315 APValue Value(APValue::UninitStruct(), 0, 4); in EvaluateInContext()
[all …]
H A DItaniumMangle.cpp6065 APValue Value; in mangleTemplateArg()
6074 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
6079 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
6146 case APValue::None: in isZeroInitialized()
6170 case APValue::Union: { in isZeroInitialized()
6200 case APValue::Int: in isZeroInitialized()
6203 case APValue::Float: in isZeroInitialized()
6216 case APValue::LValue: in isZeroInitialized()
6299 case APValue::None: in mangleValueInTemplateArg()
6414 case APValue::Int: in mangleValueInTemplateArg()
[all …]
H A DMicrosoftMangle.cpp1798 case APValue::None: in mangleTemplateArgValue()
1807 case APValue::Int: in mangleTemplateArgValue()
1814 case APValue::Float: in mangleTemplateArgValue()
1820 case APValue::LValue: { in mangleTemplateArgValue()
1926 case APValue::Struct: { in mangleTemplateArgValue()
1944 case APValue::Union: in mangleTemplateArgValue()
1954 case APValue::ComplexInt: in mangleTemplateArgValue()
1965 case APValue::ComplexFloat: in mangleTemplateArgValue()
1973 case APValue::Array: { in mangleTemplateArgValue()
1988 case APValue::Vector: { in mangleTemplateArgValue()
[all …]
H A DTemplateBase.cpp202 const APValue &V, bool IsDefaulted) { in initFromStructural()
205 Value.Value = new (Ctx) APValue(V); in initFromStructural()
217 QualType T, const APValue &V) { in getAsSimpleValueDeclRef()
238 const APValue &V, bool IsDefaulted) { in TemplateArgument()
H A DDeclCXX.cpp3067 Value = (new (getASTContext()) APValue); in getOrCreateValue()
3473 APValue &MSGuidDecl::getAsAPValue() const { in getAsAPValue()
3477 APVal = APValue(APValue::UninitStruct(), 0, 4); in getAsAPValue()
3478 APVal.getStructField(0) = APValue(APSInt(APInt(32, PartVal.Part1), true)); in getAsAPValue()
3479 APVal.getStructField(1) = APValue(APSInt(APInt(16, PartVal.Part2), true)); in getAsAPValue()
3481 APValue &Arr = APVal.getStructField(3) = in getAsAPValue()
3482 APValue(APValue::UninitArray(), 8, 8); in getAsAPValue()
3485 APValue(APSInt(APInt(8, PartVal.Part4And5[I]), true)); in getAsAPValue()
3500 const APValue &Val) in UnnamedGlobalConstantDecl()
3512 const APValue &Value) { in Create()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h122 class APValue {
278 APValue *Elts;
286 APValue *Elts;
296 APValue *Value;
327 explicit APValue(const APValue *E, unsigned N) : Kind(None) {
336 APValue(const APValue &RHS);
337 APValue(APValue &&RHS);
354 explicit APValue(const FieldDecl *D, const APValue &V = APValue())
372 APValue &operator=(const APValue &RHS);
373 APValue &operator=(APValue &&RHS);
[all …]
H A DPropertiesBase.td254 // Type cases for APValue.
330 SmallVector<APValue, 4> buffer;
339 APValue result;
350 SmallVector<APValue, 4> buffer{};
367 APValue result;
395 APValue result;
408 def : Property<"value", APValue> {
437 APValue result;
533 APValue::LValueBase base;
550 APValue result;
[all …]
H A DAbstractBasicReader.h191 APValue::LValuePathSerializationHelper readLValuePathSerializationHelper( in readLValuePathSerializationHelper()
192 SmallVectorImpl<APValue::LValuePathEntry> &path) { in readLValuePathSerializationHelper()
205 APValue::LValuePathEntry(APValue::BaseOrMemberType(decl, int_))); in readLValuePathSerializationHelper()
209 APValue::LValuePathEntry::ArrayIndex(asImpl().readUInt32())); in readLValuePathSerializationHelper()
212 return APValue::LValuePathSerializationHelper(path, origTy); in readLValuePathSerializationHelper()
H A DODRHash.h28 class APValue; variable
105 void AddStructuralValue(const APValue &);
H A DTextNodeDumper.h31 class APValue; variable
159 void dumpAPValueChildren(const APValue &Value, QualType Ty,
160 const APValue &(*IdxToChildFun)(const APValue &,
196 void Visit(const APValue &Value, QualType Ty);
H A DTemplateBase.h53 class APValue;
146 APValue *Value;
186 const APValue &V, bool IsDefaulted);
210 TemplateArgument(const ASTContext &Ctx, QualType Type, const APValue &Value,
396 const APValue &getAsStructuralValue() const { return *Value.Value; }
H A DAbstractBasicWriter.h173 APValue::LValuePathSerializationHelper lvaluePath) { in writeLValuePathSerializationHelper()
174 ArrayRef<APValue::LValuePathEntry> path = lvaluePath.Path; in writeLValuePathSerializationHelper()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DPointer.cpp83 APValue Pointer::toAPValue() const { in toAPValue()
84 APValue::LValueBase Base; in toAPValue()
85 llvm::SmallVector<APValue::LValuePathEntry, 5> Path; in toAPValue()
263 APValue Value; in toRValue()
276 R = APValue(ActiveField, Value); in toRValue()
282 R = APValue(APValue::UninitStruct(), NB, NF); in toRValue()
288 APValue &Value = R.getStructField(I); in toRValue()
315 R = APValue(APValue::UninitArray(), 0, 0); in toRValue()
322 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in toRValue()
326 APValue &Slot = R.getArrayInitializedElt(I); in toRValue()
[all …]
H A DContext.h26 class APValue; variable
52 bool evaluateAsRValue(State &Parent, const Expr *E, APValue &Result);
55 bool evaluate(State &Parent, const Expr *E, APValue &Result);
58 bool evaluateAsInitializer(State &Parent, const VarDecl *VD, APValue &Result);
97 bool Run(State &Parent, const Function *Func, APValue &Result);
H A DEvaluationResult.h46 std::variant<std::monostate, Pointer, FunctionPointer, APValue> Value;
58 void setValue(const APValue &V) { in setValue()
93 APValue toAPValue() const;
98 std::optional<APValue> toRValue() const;
H A DContext.cpp36 APValue DummyResult; in isPotentialConstantExpr()
44 bool Context::evaluateAsRValue(State &Parent, const Expr *E, APValue &Result) { in evaluateAsRValue()
64 std::optional<APValue> RValueResult = Res.toRValue(); in evaluateAsRValue()
76 bool Context::evaluate(State &Parent, const Expr *E, APValue &Result) { in evaluate()
97 APValue &Result) { in evaluateAsInitializer()
123 std::optional<APValue> RValueResult = Res.toRValue(); in evaluateAsInitializer()
207 bool Context::Run(State &Parent, const Function *Func, APValue &Result) { in Run()
H A DFunctionPointer.h30 APValue toAPValue() const { in toAPValue()
32 return APValue(static_cast<Expr *>(nullptr), CharUnits::Zero(), {}, in toAPValue()
35 return APValue(Func->getDecl(), CharUnits::Zero(), {}, in toAPValue()
H A DEvaluationResult.cpp18 APValue EvaluationResult::toAPValue() const { in toAPValue()
31 return std::get<APValue>(Value); in toAPValue()
33 return APValue(); in toAPValue()
39 std::optional<APValue> EvaluationResult::toRValue() const { in toRValue()
169 std::get<APValue>(Value).dump(OS, ASTCtx); in dump()
H A DBoolean.h64 APValue toAPValue() const { return APValue(toAPSInt()); } in toAPValue()
H A DEvalEmitter.cpp21 InterpStack &Stk, APValue &Result) in EvalEmitter()
139 if (std::optional<APValue> APV = Ptr.toRValue(S.getCtx())) { in emitRetValue()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DConstantEmitter.h78 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace,
106 llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value,
113 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
114 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T);
138 llvm::Constant *tryEmitPrivate(const APValue &value, QualType T);
139 llvm::Constant *tryEmitPrivateForMemory(const APValue &value, QualType T);
H A DCGExprConstant.cpp1817 const APValue &Value;
2089 case APValue::None: in tryEmitPrivate()
2093 case APValue::LValue: in tryEmitPrivate()
2095 case APValue::Int: in tryEmitPrivate()
2097 case APValue::FixedPoint: in tryEmitPrivate()
2100 case APValue::ComplexInt: { in tryEmitPrivate()
2113 case APValue::Float: { in tryEmitPrivate()
2136 case APValue::Vector: { in tryEmitPrivate()
2172 case APValue::Struct: in tryEmitPrivate()
2173 case APValue::Union: in tryEmitPrivate()
[all …]

1234