search for: getregmask

Displaying 11 results from an estimated 11 matches for "getregmask".

Did you mean: getregmasks
2016 Jun 22
0
Finding caller-saved registers at a function call site
...function call? I'm currently targeting the AArch64 > & X86 backends. You should be able to use the RegMask operand to the MachineInstr to discover the registers that are preserved or clobbered by the call according to the calling convention. For reference, you might want to look at `getRegMask` and `gatherMaximalPreservedRegisters` in http://reviews.llvm.org/D21115. As far as discovering the slot to which it is spilled, I have no idea. CC'ing Matthias for this. -- Sanjoy
2016 Jun 22
3
Finding caller-saved registers at a function call site
Hi everyone, I'm looking for a way to get all the caller-saved registers (both the register and the stack slot at which it was saved) for a given function call site in the backend. What's the best way to grab this information? Is it possible to get this information if I have the MachineInstr of the function call? I'm currently targeting the AArch64 & X86 backends. Thanks! --
2017 Jan 09
5
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...ve intermediate representation that can be printed and later on parsed to recreate the MIs. MI printer and parser expect the Register Mask array pointer to point to a predefined (static) list of RegMasks. Those lists are retrieved from auto generated file x86GenRegisterInfo.inc using the functions: getRegMasks() and getRegMaskNames(). However, since we create a dynamically allocated register mask, its pointer will not reside in the static lists and no corresponding name could be found. In that case, the MIPrinter will fail to emit the RegMask Name. I would appreciate the community opinion regarding my...
2017 Jan 11
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...ve intermediate representation that can be printed and later on parsed to recreate the MIs. MI printer and parser expect the Register Mask array pointer to point to a predefined (static) list of RegMasks. Those lists are retrieved from auto generated file x86GenRegisterInfo.inc using the functions: getRegMasks() and getRegMaskNames(). However, since we create a dynamically allocated register mask, its pointer will not reside in the static lists and no corresponding name could be found. In that case, the MIPrinter will fail to emit the RegMask Name. I would appreciate the community opinion regarding my...
2016 Jun 27
3
Finding caller-saved registers at a function call site
...rently targeting the AArch64 > > & X86 backends. > > You should be able to use the RegMask operand to the MachineInstr to > discover the registers that are preserved or clobbered by the call > according to the calling convention. For reference, you might want to > look at `getRegMask` and `gatherMaximalPreservedRegisters` in > http://reviews.llvm.org/D21115. > > As far as discovering the slot to which it is spilled, I have no idea. > CC'ing Matthias for this. > > -- Sanjoy > -- Rob Lyerly Graduate Research Assistant, Systems Software Research Group...
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...ve intermediate representation that can be printed and later on parsed to recreate the MIs. MI printer and parser expect the Register Mask array pointer to point to a predefined (static) list of RegMasks. Those lists are retrieved from auto generated file x86GenRegisterInfo.inc using the functions: getRegMasks() and getRegMaskNames(). However, since we create a dynamically allocated register mask, its pointer will not reside in the static lists and no corresponding name could be found. In that case, the MIPrinter will fail to emit the RegMask Name. I would appreciate the community opinion regarding my...
2015 Jul 30
0
[LLVMdev] [3.7.0] Two late issues with cross compilation to mips
...t;, %D6<imp-use,kill>, %D7<imp-use>, %SP<imp-def>, %D0<imp-def> The %vreg260 at 4480B is being coalesced with the %D7 at 4960B but the call preserved masks in the JAL's (jump and link) at 4544B, 4752B, and 4656B say that D7 isn't preserved. The pass doesn't call getRegMask() in any obvious way so it seems likely that it's not respecting the mask. ________________________________________ From: Matthias Braun [mbraun at apple.com] Sent: 30 July 2015 01:14 To: Daniel Sanders Cc: Hans Wennborg (hans at chromium.org); LLVM Developers Mailing List (llvmdev at cs.ui...
2015 Jul 30
2
[LLVMdev] [3.7.0] Two late issues with cross compilation to mips
To reduce memory consumption clobbered registers are handled with RegisterMask machine operands which contain a bitset of all registers clobbered. - Matthias > On Jul 29, 2015, at 3:00 PM, Daniel Sanders <daniel.sanders at imgtec.com> wrote: > > I believe I've identified the problem with almabench but I haven't found the root cause in the compiler yet. > > The
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...ve intermediate representation that can be printed and later on parsed to recreate the MIs. MI printer and parser expect the Register Mask array pointer to point to a predefined (static) list of RegMasks. Those lists are retrieved from auto generated file x86GenRegisterInfo.inc using the functions: getRegMasks() and getRegMaskNames(). However, since we create a dynamically allocated register mask, its pointer will not reside in the static lists and no corresponding name could be found. In that case, the MIPrinter will fail to emit the RegMask Name. I would appreciate the community opinion regarding my...
2016 Jun 27
0
Finding caller-saved registers at a function call site
...ch64 >> > & X86 backends. >> >> You should be able to use the RegMask operand to the MachineInstr to >> discover the registers that are preserved or clobbered by the call >> according to the calling convention. For reference, you might want to >> look at `getRegMask` and `gatherMaximalPreservedRegisters` in >> http://reviews.llvm.org/D21115. >> >> As far as discovering the slot to which it is spilled, I have no idea. >> CC'ing Matthias for this. >> >> -- Sanjoy >> > > > > -- > Rob Lyerly > Graduat...
2017 Jan 12
2
RFC: Dynamically Allocated "Callee Saved Registers" Lists
...ve intermediate representation that can be printed and later on parsed to recreate the MIs. MI printer and parser expect the Register Mask array pointer to point to a predefined (static) list of RegMasks. Those lists are retrieved from auto generated file x86GenRegisterInfo.inc using the functions: getRegMasks() and getRegMaskNames(). However, since we create a dynamically allocated register mask, its pointer will not reside in the static lists and no corresponding name could be found. In that case, the MIPrinter will fail to emit the RegMask Name. I would appreciate the community opinion regarding my...