[llvm] [NVPTX] support immediate values in st.param instructions (PR #91523)

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 15:52:59 PDT 2024


================
@@ -2637,25 +2637,49 @@ class LoadParamRegInst<NVPTXRegClass regclass, string opstr> :
                 [(set regclass:$dst, (LoadParam (i32 0), (i32 imm:$b)))]>;
 
 let mayStore = true in {
-  class StoreParamInst<NVPTXRegClass regclass, string opstr> :
+  class StoreParamInstReg<NVPTXRegClass regclass, string opstr> :
----------------
Artem-B wrote:

Down below you have `StoreParamInst` which defines register and immediate store ops. 
`StoreParamInstReg` provides only a register-based store.
I propose to keep instruction definitions within one class only, in `StoreParamInst`, and eliminate `StoreParamInstReg` as redundant.

https://github.com/llvm/llvm-project/pull/91523


More information about the llvm-commits mailing list