aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
diff options
context:
space:
mode:
authorIvan Kosarev <ivan.kosarev@amd.com>2025-10-08 10:51:55 +0100
committerGitHub <noreply@github.com>2025-10-08 10:51:55 +0100
commit20f41ed8c195eff6199dc77bdd20f7226cfdae0f (patch)
treec1337659048872283beafa0e9e2afda806641e7d /llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp
parent301ecc6da9b1633ab9256d32ca23c53146e7d652 (diff)
downloadllvm-20f41ed8c195eff6199dc77bdd20f7226cfdae0f.zip
llvm-20f41ed8c195eff6199dc77bdd20f7226cfdae0f.tar.gz
llvm-20f41ed8c195eff6199dc77bdd20f7226cfdae0f.tar.bz2
[AMDGPU][MC] Avoid creating lit64() operands unless asked or needed. (#161191)
There should normally be no need to generate implicit lit64() modifiers on the assembler side. It's the encoder's responsibility to recognise literals that are implicitly 64 bits wide. The exceptions are where we rewrite floating-point operand values as integer ones, which would not be assembled back to the original values unless wrapped into lit64(). Respect explicit lit() modifiers for non-inline values as necessary to avoid regressions in MC tests. This change still doesn't prevent use of inline constants where lit()/lit64 is specified; subject to a separate patch. On disassembling, only create lit64() operands where necessary for correct round-tripping. Add round-tripping tests where useful and feasible.
Diffstat (limited to 'llvm/tools/llvm-offload-binary/llvm-offload-binary.cpp')
0 files changed, 0 insertions, 0 deletions