search for: hstride

Displaying 3 results from an estimated 3 matches for "hstride".

Did you mean: stride
2016 Aug 22
4
How to describe the RegisterInfo?
...mponents. You can refer below link for more details on Intel GPU assembly and register usage: https://software.intel.com/en-us/articles/introduction-to-gen-assembly I notice the hardware encoding of a register is 16 bit. that is not enough to encode all the register region parameters(regNum, type, hstride, vstride, width,...) in RegisterInfo.td. And I am not sure which is the reasonable place to hold this stride/type/width information for a physical register. Maybe some other .cpp file is more suitable than RegisterInfo.td file? Because I need to change the register region parameters in the bitcast...
2016 Aug 23
2
How to describe the RegisterInfo?
...ke below(to make things simple, I remove some WORD/QWORD register class): let Namespace = "IntelGPU" in { foreach Index = 0-15 in { def sub#Index : SubRegIndex<32, !shl(Index, 5)>; } } class IntelGPUReg<string n, bits<13> regIdx> : Register<n> { bits<2> HStride; bits<1> regFile; let Namespace = "IntelGPU"; let HWEncoding{12-0} = regIdx; let HWEncoding{15} = regFile; } // here I define the whole 4096 byte registers foreach Index = 0-4095 in { def Rb#Index : IntelGPUReg <"Rb"#Index, Index> { let regFile = 0...
2016 Aug 23
2
How to describe the RegisterInfo?
Hi Escha, Great to have your comment! Do you have any specific reason for not doing like this? I am not sure whether I understand your point correctly. For "just model one thread", do you mean "only considering ONE of the 8/16 working lanes that running in lock-step way"?? For my case, may be something like I only need to define r0~r127 as register for i32 register (each r#