Class IntType

Inheritance Relationships

Base Type

Class Documentation

class seq::types::IntType : public seq::types::Type

Public Functions

IntType(IntType const&) = delete
void operator=(IntType const&) = delete
llvm::Value *defaultValue(llvm::BasicBlock *block) override

Codegens the default value of this type. Usually this is just what you’d expect: zero for integral types, null for pointer and reference types, recursively defined for aggregate types.


value of the default value

  • block: where to codegen the default value

void initOps() override

Performs a one-time initialization of this type’s methods, including magic methods.

llvm::Type *getLLVMType(llvm::LLVMContext &context) const override

Returns the LLVM type corresponding to this type.

size_t size(llvm::Module *module) const override

Returns the size (in bytes) of the LLVM type corresponding to this type.

Public Static Functions

IntType *get() noexcept