Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/Interp/Function.h
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | public: | ||||
/// Checks if the function is fully done compiling. | /// Checks if the function is fully done compiling. | ||||
bool isFullyCompiled() const { return IsFullyCompiled; } | bool isFullyCompiled() const { return IsFullyCompiled; } | ||||
bool hasThisPointer() const { return HasThisPointer; } | bool hasThisPointer() const { return HasThisPointer; } | ||||
// Checks if the funtion already has a body attached. | // Checks if the funtion already has a body attached. | ||||
bool hasBody() const { return HasBody; } | bool hasBody() const { return HasBody; } | ||||
unsigned getBuiltinID() const { return F->getBuiltinID(); } | |||||
unsigned getNumParams() const { return ParamTypes.size(); } | unsigned getNumParams() const { return ParamTypes.size(); } | ||||
private: | private: | ||||
/// Construct a function representing an actual function. | /// Construct a function representing an actual function. | ||||
Function(Program &P, const FunctionDecl *F, unsigned ArgSize, | Function(Program &P, const FunctionDecl *F, unsigned ArgSize, | ||||
llvm::SmallVector<PrimType, 8> &&ParamTypes, | llvm::SmallVector<PrimType, 8> &&ParamTypes, | ||||
llvm::DenseMap<unsigned, ParamDescriptor> &&Params, | llvm::DenseMap<unsigned, ParamDescriptor> &&Params, | ||||
bool HasThisPointer, bool HasRVO); | bool HasThisPointer, bool HasRVO); | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |