[llvm-branch-commits] [llvm] AMDGPU: Extract lambda used in foldImmediate into a helper function (PR #127484)
Shilei Tian via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 17 08:55:05 PST 2025
================
@@ -401,6 +401,15 @@ class SIInstrInfo final : public AMDGPUGenInstrInfo {
void removeModOperands(MachineInstr &MI) const;
+ /// Return the extracted immediate value in a subregister use from a constant
+ /// materialized in a super register.
+ ///
+ /// e.g. %imm = S_MOV_B64 K[0:63]
+ /// USE %imm.sub1
+ /// This will return k[32:63]
----------------
shiltian wrote:
```suggestion
/// This will return K[32:63]
```
https://github.com/llvm/llvm-project/pull/127484
More information about the llvm-branch-commits
mailing list