diff options
author | wanglei <wanglei@loongson.cn> | 2022-11-21 15:36:28 +0800 |
---|---|---|
committer | wanglei <wanglei@loongson.cn> | 2022-11-21 16:33:47 +0800 |
commit | f873c50caa597051e7cbff50116da83b8a9171c9 (patch) | |
tree | b09de496533f46a76ca3f54ad3bf23b94765b0be /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 846cdf0198397ca37f5929e3f6b23224b16129c4 (diff) | |
download | llvm-f873c50caa597051e7cbff50116da83b8a9171c9.zip llvm-f873c50caa597051e7cbff50116da83b8a9171c9.tar.gz llvm-f873c50caa597051e7cbff50116da83b8a9171c9.tar.bz2 |
[LoongArch] AsmParser support for the li.[wd] pseudo instructions
The `li.[wd]` pseudo instructions are used to load an immediate value
into a GPR. These expand directly during asm parsing. As the result,
only real MC instructions are emitted to the MCStreamer. The actual
expansion to real instructions is similar to the expansion performed by
the GAS.
Note: The `li.w` always treats the imm operand as a 32-bit signed value.
Reviewed By: SixWeining
Differential Revision: https://reviews.llvm.org/D138086
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions