Displaying 1 result from an estimated 1 matches for "llvm_abstract_virtu".
Did you mean:
llvm_abstract_virtual
2018 May 03
3
RFC: virtual-like methods via LLVM-style RTTI
...l methods are declared like so:
//
// LLVM_VIRTUAL_THUNK(BaseTy, makeSound)
// void LLVM_VIRTUAL(makeSound)(int howLoud) { /* normal body */ }
//
// For base classes, one must do a little more work. The simplest case is an
// abstract virtual method in a type called 'Base':
//
// void LLVM_ABSTRACT_VIRTUAL(BaseTy, makeSound)
//
// And then later in the header file, the vtable definition:
//
// LLVM_ABSTRACT_VIRTUAL_BEGIN(BaseTy, makeSound)
// #define BASE_NODE(Ty, ...) LLVM_ABSTRACT_VIRTUAL_SLOT(Ty, makeSound)
// #include <BaseTy.inc>
// LLVM_ABSTRACT_VIRTUAL_END(getKind())
//
//
// Example:...