clangir
clangir copied to clipboard
[CIR][CIRGen][TBAA] Add support for TBAA
This patch introduces support for TBAA, following the structure ofclang/lib/CodeGen/CodeGenTBAA.h. The key function implemented is CIRGenModule::decorateOperationWithTBAA, which works similarly to CodeGenModule::DecorateInstructionWithTBAA.
Note: Support for vtable pointer and tbaa.struct is not yet included.
For further details, please refer to:
- https://github.com/llvm/clangir/issues/289
- LLVM Language Reference: tbaa.struct Metadata
:white_check_mark: With the latest revision this PR passed the C/C++ code formatter.
Thanks for continuing this work! I'd prefer if we start small, perhaps just scalars or whatever is smaller, I'd like to help you trim off unnecessary information we might not need, but the scope is still a bit bigger than necessary. Also please update the title to convey the incremental work happening.
Thank you for your suggestion. I prefer to submit the code in a new PR while keeping the current PR open until it's fully completed.
sent https://github.com/llvm/clangir/pull/1220