diff options
author | Alex MacLean <amaclean@nvidia.com> | 2024-02-08 15:14:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 17:14:13 -0600 |
commit | 9affa177b526459beddafad30474d2e3186376e4 (patch) | |
tree | 04bee7866228fdb944b45879347bab4ad3c32ac2 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 8c106a15156857d23ba9e61c55b49b1e2b6c1583 (diff) | |
download | llvm-9affa177b526459beddafad30474d2e3186376e4.zip llvm-9affa177b526459beddafad30474d2e3186376e4.tar.gz llvm-9affa177b526459beddafad30474d2e3186376e4.tar.bz2 |
[NVPTX] Add support for calling aliases (#81170)
The current implementation of aliases tries to remove all the aliases in
the module to prevent the generic version of `AsmPrinter` from emitting
them incorrectly. Unfortunately, if the aliases are used this will fail.
Instead let's override the function to print aliases directly.
In addition, the declarations of the alias functions must occur before
the uses. To fix this we emit alias declarations as part of
`emitDeclarations` and only emit the `.alias` directives at the end
(where we can assume the aliasee has also already been declared).
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions