diff options
author | Fabian Mora <fmora.dev@gmail.com> | 2023-07-28 13:00:26 +0000 |
---|---|---|
committer | Fabian Mora <fmora.dev@gmail.com> | 2023-07-28 13:03:41 +0000 |
commit | a428b5afbd6d48edda9d21ffabd57eee1e7b984d (patch) | |
tree | 0164ab9bd1344f7564873437ae223e9d0fde88cf /llvm/lib/CodeGen/MachineCheckDebugify.cpp | |
parent | 3984a3ddbb280f08cd73fb57f1bd0d1fd78c4a6b (diff) | |
download | llvm-a428b5afbd6d48edda9d21ffabd57eee1e7b984d.zip llvm-a428b5afbd6d48edda9d21ffabd57eee1e7b984d.tar.gz llvm-a428b5afbd6d48edda9d21ffabd57eee1e7b984d.tar.bz2 |
[mlir][target][LLVMIR] Change translation order to translate non-LLVM ops before function bodies.
Convert function bodies after all other operations, breaking possible declaration-reference issues between top non-LLVM Ops and non-LLVM ops inside function bodies.
Example:
```
mydialect.global @myglobal : i32
llvm.func @bar(...) {
...
%address = mydialect.global_address @myglobal : llvm.ptr
...
}
```
With the previous scheme `mydialect.global_address` always got translated before `mydialect.global`, this change ensures `mydialect.global` gets translated first.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D156284
Diffstat (limited to 'llvm/lib/CodeGen/MachineCheckDebugify.cpp')
0 files changed, 0 insertions, 0 deletions