Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.h132 std::optional<PrimType> classify(const Expr *E) const { in classify()
141 std::optional<PrimType> classify(QualType Ty) const { in classify()
146 PrimType classifyPrim(QualType Ty) const { in classifyPrim()
229 bool visitZeroInitializer(PrimType T, QualType QT, const Expr *E);
245 llvm::function_ref<bool(PrimType)> Direct,
246 llvm::function_ref<bool(PrimType)> Indirect);
249 llvm::function_ref<bool(PrimType)> Direct,
250 llvm::function_ref<bool(PrimType)> Indirect);
251 bool dereferenceVar(const Expr *LV, PrimType T, const VarDecl *PD,
253 llvm::function_ref<bool(PrimType)> Indirect);
[all …]
H A DByteCodeExprGen.cpp83 [](PrimType) { in VisitCastExpr() argument
87 [this, CE](PrimType T) { in VisitCastExpr()
173 PrimType T = classifyPrim(CE->getType()); in VisitCastExpr()
234 std::optional<PrimType> ElemT = in VisitCastExpr()
516 PrimType OffsetType; in VisitPointerArithBinOp()
877 PrimType ElemT = classifyPrim(ElemQT); in VisitInitListExpr()
1236 PrimType LHST = classifyPrim(LHSType); in VisitFloatCompoundAssignOperator()
1996 PrimType T = classifyPrim(ET); in visitZeroRecordInitializer()
2792 [](PrimType) { in VisitUnaryOperator() argument
2796 [this, E](PrimType T) { in VisitUnaryOperator()
[all …]
H A DInterp.h208 template <PrimType Name, class T = typename PrimConv<Name>::T>
301 template <PrimType Name, class T = typename PrimConv<Name>::T>
319 template <PrimType Name, class T = typename PrimConv<Name>::T>
337 template <PrimType Name, class T = typename PrimConv<Name>::T>
357 template <PrimType Name, class T = typename PrimConv<Name>::T>
374 template <PrimType Name, class T = typename PrimConv<Name>::T>
391 template <PrimType Name, class T = typename PrimConv<Name>::T>
408 template <PrimType Name, class T = typename PrimConv<Name>::T>
1574 template <PrimType TIn, PrimType TOut> bool Cast(InterpState &S, CodePtr OpPC) { in Cast()
1758 template <PrimType NameL, PrimType NameR>
[all …]
H A DFunction.h29 enum PrimType : uint32_t;
78 using ParamDescriptor = std::pair<PrimType, Descriptor *>;
119 SmallVectorImpl<PrimType>::const_reverse_iterator;
193 llvm::SmallVectorImpl<PrimType> &&ParamTypes,
234 llvm::SmallVector<PrimType, 8> ParamTypes;
H A DInterpBuiltin.cpp26 PrimType getIntPrimType(const InterpState &S) { in getIntPrimType()
37 PrimType getLongPrimType(const InterpState &S) { in getLongPrimType()
67 PrimType IntType = getIntPrimType(S); in pushInt()
128 PrimType LongType = getLongPrimType(S); in pushLong()
159 std::optional<PrimType> &T) { in retPrimValue()
515 PrimType ArgT = *S.getContext().classify(Call->getArg(0)->getType()); in interp__builtin_popcount()
524 PrimType ArgT = *S.getContext().classify(Call->getArg(0)->getType()); in interp__builtin_parity()
533 PrimType ArgT = *S.getContext().classify(Call->getArg(0)->getType()); in interp__builtin_clrsb()
543 PrimType ArgT = *S.getContext().classify(Call->getArg(0)->getType()); in interp__builtin_bitreverse()
622 PrimType PtrT = in interp__builtin_addressof()
[all …]
H A DDescriptor.cpp184 static BlockCtorFn getCtorPrim(PrimType Type) { in getCtorPrim()
197 static BlockDtorFn getDtorPrim(PrimType Type) { in getDtorPrim()
210 static BlockMoveFn getMovePrim(PrimType Type) { in getMovePrim()
214 static BlockCtorFn getCtorArrayPrim(PrimType Type) { in getCtorArrayPrim()
219 static BlockDtorFn getDtorArrayPrim(PrimType Type) { in getDtorArrayPrim()
224 static BlockMoveFn getMoveArrayPrim(PrimType Type) { in getMoveArrayPrim()
230 Descriptor::Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, in Descriptor()
241 Descriptor::Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, in Descriptor()
254 Descriptor::Descriptor(const DeclTy &D, PrimType Type, bool IsTemporary, in Descriptor()
H A DDescriptor.h25 enum PrimType : unsigned;
123 Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, bool IsConst,
127 Descriptor(const DeclTy &D, PrimType Type, MetadataSize MD, size_t NumElems,
131 Descriptor(const DeclTy &D, PrimType Type, bool IsTemporary, UnknownSize);
H A DPrimType.h32 enum PrimType : unsigned { enum
62 constexpr bool isIntegralType(PrimType T) { return T <= PT_Bool; } in isIntegralType()
65 template <PrimType T> struct PrimConv;
88 size_t primSize(PrimType Type);
H A DPointer.cpp247 if (std::optional<PrimType> T = Ctx.classify(Ty)) { in toRValue()
268 if (std::optional<PrimType> T = Ctx.classify(FieldTy)) { in toRValue()
290 if (std::optional<PrimType> T = Ctx.classify(FieldTy)) { in toRValue()
328 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in toRValue()
340 std::optional<PrimType> ElemT = Ctx.classify(ElemTy); in toRValue()
H A DEvalEmitter.cpp111 template <PrimType OpType> bool EvalEmitter::emitRet(const SourceInfo &Info) { in emitRet()
157 template <PrimType OpType>
169 template <PrimType OpType>
H A DContext.h32 enum PrimType : unsigned;
74 std::optional<PrimType> classify(QualType T) const;
H A DProgram.cpp41 PrimType CharType; in createGlobalString()
294 if (std::optional<PrimType> T = Ctx.classify(FT)) { in getOrCreateRecord()
330 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
357 if (std::optional<PrimType> T = Ctx.classify(ElemTy)) { in createDescriptor()
380 PrimType ElemTy = *Ctx.classify(CT->getElementType()); in createDescriptor()
H A DByteCodeEmitter.cpp26 SmallVector<PrimType, 8> ParamTypes; in compileFunc()
80 std::optional<PrimType> T = Ctx.classify(PD->getType()); in compileFunc()
81 PrimType PT = T.value_or(PT_Ptr); in compileFunc()
H A DPrimType.cpp22 size_t primSize(PrimType Type) { in primSize()
H A DInterpStack.h151 std::vector<PrimType> ItemTypes;
153 template <typename T> static constexpr PrimType toPrimType() { in toPrimType()
H A DByteCodeStmtGen.cpp124 PrimType ParamType = this->classify(PVD->getType()).value_or(PT_Ptr); in emitLambdaStaticInvokerBody()
147 if (std::optional<PrimType> T = this->classify(InitExpr)) { in visitFunc()
582 PrimType CondT = this->classifyPrim(Cond->getType()); in visitSwitchStmt()
609 PrimType ValueT = this->classifyPrim(Value->getType()); in visitSwitchStmt()
H A DFunction.cpp20 llvm::SmallVectorImpl<PrimType> &&ParamTypes, in Function()
H A DInterpFrame.cpp97 for (PrimType Ty : Func->args_reverse()) in popArgs()
176 PrimType PrimTy = S.Ctx.classify(Ty).value_or(PT_Ptr); in describe()
H A DByteCodeStmtGen.h73 std::optional<PrimType> ReturnType;
H A DInterpBlock.h30 enum PrimType : unsigned;
H A DProgram.h117 Descriptor *createDescriptor(const DeclTy &D, PrimType Type,
H A DContext.cpp135 std::optional<PrimType> Context::classify(QualType T) const { in classify()
H A DPointer.h31 enum PrimType : unsigned;
H A DInterp.cpp144 PrimType Ty = S.getContext().classify(Arg->getType()).value_or(PT_Ptr); in popArg()
/freebsd-14.2/lib/clang/libclang/
H A DMakefile112 SRCS_MIN+= AST/Interp/PrimType.cpp