30 return returnType_->clone();
42 return paramTypes_.empty();
46 return paramTypes_.size();
53 int size()
const override {
61 std::unique_ptr<Constant>
zeroValue()
const override {
65 std::unique_ptr<Constant>
constant(int64_t)
const override {
69 std::unique_ptr<Type>
promoted()
const override {
73 std::unique_ptr<Type>
demoted()
const override {
78 std::unique_ptr<Type>
clone()
const override;
92 std::unique_ptr<Type> returnType_;
93 std::vector<std::unique_ptr<Type>> paramTypes_;
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition IndirectIterator.h:16
Definition FunctionType.h:22
std::unique_ptr< Type > promoted() const override
Definition FunctionType.h:69
std::unique_ptr< Type > clone() const override
bool equals(const Type &other) const override
size_t param_type_size() const
Definition FunctionType.h:45
std::unique_ptr< Constant > constant(int64_t) const override
Definition FunctionType.h:65
bool isVarArgs() const
Definition FunctionType.h:49
std::unique_ptr< Type > returnType() const
Definition FunctionType.h:29
FunctionType(std::unique_ptr< Type > returnType, std::vector< std::unique_ptr< Type > > paramTypes, bool isVarArgs)
Definition FunctionType.h:26
param_type_iterator param_type_begin() const
Definition FunctionType.h:33
param_type_iterator param_type_end() const
Definition FunctionType.h:37
std::unique_ptr< Constant > zeroValue() const override
Definition FunctionType.h:61
int alignment() const override
Definition FunctionType.h:57
std::string format() const override
void accept(TypeVisitor &visitor) override
Definition FunctionType.h:80
bool param_type_empty() const
Definition FunctionType.h:41
IndirectIterator< std::vector< std::unique_ptr< Type > >::const_iterator, Type > param_type_iterator
Definition FunctionType.h:24
std::unique_ptr< Type > demoted() const override
Definition FunctionType.h:73
void accept(TypeVisitor &visitor) const override
Definition FunctionType.h:84
int size() const override
Definition FunctionType.h:53
Definition TypeVisitor.h:25
virtual void visitFunctionType(FunctionType &type)
Definition TypeVisitor.h:41
auto paramTypes(const FunctionType &type)
Definition FunctionType.h:97