search for: class_codegen

Displaying 1 result from an estimated 1 matches for "class_codegen".

2020 Jun 09
2
Implementing a VTable in LLVM
...e Bolt source code that compiles to it- https://github.com/mukul-rathi/bolt/blob/vtable/examples/vtable/foo.bolt <https://github.com/mukul-rathi/bolt/blob/vtable/examples/vtable/foo.bolt> I currently have code (https://github.com/mukul-rathi/bolt/blob/vtable/src/llvm-backend/llvm_ir_codegen/class_codegen.cc#L57:L77 <https://github.com/mukul-rathi/bolt/blob/vtable/src/llvm-backend/llvm_ir_codegen/class_codegen.cc#L57:L77>) that generates the following global Vtable for a class Foo: %_VtableFoo = type { void (%Foo*, i32)* } %Foo = type { %_VtableFoo*, %pthread_t*, i32, i32, i32, i32 } @_Vtab...