search for: huhong789

Displaying 6 results from an estimated 6 matches for "huhong789".

2017 Jan 21
3
Spare Register at one Machine Instruction
...live-in to a block and not killed before your instruction or it has a def and no kill within the block, it is live. Otherwise it is dead and available. Isn't it? Or are you interested in whether a physical register is unused in the entire function? On Sat, Jan 21, 2017 at 10:21 AM, Hong Hu <huhong789 at gmail.com> wrote: > Hi Nemanja and Matthias, > > Thanks for the reply. > > I checked both Register Scavenger and LivePhysReg. It seems that both work > on the BasicBlock level, right? > > Is it possible to perform such analysis in a whole function? For example, > c...
2016 Dec 29
0
Structure Padding and GetElementPtr
...double d1; int i1; bool pad2[4]; }; A and Apad will have the same layout, from the LLVM IR level: %class.A = type <{ i8, i8, [6 x i8], double, i32, [4 x i8] }> %class.Apad = type { i8, i8, [6 x i8], double, i32, [4 x i8] } Regards, Hu Hong On 29 December 2016 at 10:44, Hong Hu <huhong789 at gmail.com> wrote: > Thanks, Eli. > > Next question is how to get the layout of the original C++ class from LLVM > IR? > > Regards, > Hu Hong > > On 29 December 2016 at 01:57, Friedman, Eli <efriedma at codeaurora.org> > wrote: > >> On 12/28/2016 5...
2016 Dec 29
1
Structure Padding and GetElementPtr
...t; > A and Apad will have the same layout, from the LLVM IR level: > > %class.A = type <{ i8, i8, [6 x i8], double, i32, [4 x i8] }> > %class.Apad = type { i8, i8, [6 x i8], double, i32, [4 x i8] } > > Regards, > Hu Hong > > On 29 December 2016 at 10:44, Hong Hu <huhong789 at gmail.com> wrote: > >> Thanks, Eli. >> >> Next question is how to get the layout of the original C++ class from >> LLVM IR? >> >> Regards, >> Hu Hong >> >> On 29 December 2016 at 01:57, Friedman, Eli <efriedma at codeaurora.org> &...
2016 Dec 29
1
Structure Padding and GetElementPtr
Yes, Reid. I have used these methods to figure out the layout. Now my question is to build a map between the original layout and the new layout. I show one example below. When LLVM IR access the 4th (starting from 0th) member (i32) of the class A, the map will tell that in fact it is accessing the originally 3rd member (i1). Any suggestion? Regards, Hu Hong On 29 December 2016 at 10:50, Reid
2016 Dec 29
4
Structure Padding and GetElementPtr
Thanks, Eli. Next question is how to get the layout of the original C++ class from LLVM IR? Regards, Hu Hong On 29 December 2016 at 01:57, Friedman, Eli <efriedma at codeaurora.org> wrote: > On 12/28/2016 5:41 AM, Hong Hu via llvm-dev wrote: > > Hi all, > > I'm writing a pass to understand the memory access to C++ class members. > For each GetElementPtr instruction,
2017 Jan 19
2
Spare Register at one Machine Instruction
There is also the LivePhysReg facility that I would recomment if you just want to query for a free register and do not need the full feature set of the RegisterScavenger. - Matthias > On Jan 19, 2017, at 5:50 AM, Nemanja Ivanovic via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I believe what you're after is the register scavenger. > It's in: