search for: getmmi

Displaying 18 results from an estimated 18 matches for "getmmi".

2013 Aug 05
2
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
Hello, I want to add a global variable of arrayType in my MachineFunctionPass. However, I only get const Module from MachineFunction.getMMI().getModule(). I can't add any global variable to a const Module. Another way is to add a global variable in doInitialization in my MachineFunctionPass, but I can't determine the size of my arrayType for global variable in doInitialization. Is there any suggestion that can help me achieve...
2015 Aug 06
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
...eneration, right? why do we need to affect type generation? we just need to know dwarf type id in the backend, so we can emit it as a constant. I still think lowering eh_typeid_for differently may work. Like instead of doing GV = ExtractTypeInfo(I.getArgOperand(0)) followed by getMachineFunction().getMMI().getTypeIDFor(GV) we can get dwarf type id from I.getArgOperand(0) if it's any pointer to struct type. I'm not familiar with dwarf handling part of llvm, but feels possible.
2013 Aug 05
3
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...To: llvmdev at cs.uiuc.edu > > Subject: [LLVMdev] Can I add GlobalVariable in MachineFunctionPass ? > > > > Hello, > > > > I want to add a global variable of arrayType in my MachineFunctionPass. > > However, I only get const Module from > > MachineFunction.getMMI().getModule(). > > I can't add any global variable to a const Module. > > Another way is to add a global variable in doInitialization in my > > MachineFunctionPass, but I can't determine the size of my arrayType for > > global variable in doInitialization. > >...
2020 Nov 12
2
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...portions are included): /* Inserts push rcx followed by pop rcx before each MachineBasicBlock */ void VirtualTimeManager::__insertVtlLogic(MachineFunction &MF, MachineBasicBlock* origMBB) { const llvm::TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); auto MMI = &MF.getMMI(); llvm::Module &M = const_cast<Module &>(*MMI->getModule()); if (origMBB->empty() || !origMBB->isLegalToHoistInto()) return; llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), TII.get(X86::POP64r)).addReg(X86::RCX); /* SOME ADDITIONAL L...
2013 Aug 05
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...day, August 05, 2013 3:41 AM > To: llvmdev at cs.uiuc.edu > Subject: [LLVMdev] Can I add GlobalVariable in MachineFunctionPass ? > > Hello, > > I want to add a global variable of arrayType in my MachineFunctionPass. > However, I only get const Module from > MachineFunction.getMMI().getModule(). > I can't add any global variable to a const Module. > Another way is to add a global variable in doInitialization in my > MachineFunctionPass, but I can't determine the size of my arrayType for > global variable in doInitialization. > > Is there any sugges...
2013 Aug 05
2
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...LLVMdev] Can I add GlobalVariable in MachineFunctionPass ? >>> > >>> > Hello, >>> > >>> > I want to add a global variable of arrayType in my MachineFunctionPass. >>> > However, I only get const Module from >>> > MachineFunction.getMMI().getModule(). >>> > I can't add any global variable to a const Module. >>> > Another way is to add a global variable in doInitialization in my >>> > MachineFunctionPass, but I can't determine the size of my arrayType for >>> > global variable...
2015 Aug 31
2
Should personality functions actually be functions
...g <mailto:llvm-commits at lists.llvm.org>> wrote: >> Hi Philip >> >> While reducing a test case with personality functions, I crashed selection DAG. The reason being that my personality function was no longer a function. The relevant code is >> >> MF->getMMI().addPersonality(MBB, cast<Function>(LPadInst->getParent() >> ->getParent() >> ->getPersonalityFn() >> -...
2013 Aug 05
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...>> > Subject: [LLVMdev] Can I add GlobalVariable in MachineFunctionPass ? >> > >> > Hello, >> > >> > I want to add a global variable of arrayType in my MachineFunctionPass. >> > However, I only get const Module from >> > MachineFunction.getMMI().getModule(). >> > I can't add any global variable to a const Module. >> > Another way is to add a global variable in doInitialization in my >> > MachineFunctionPass, but I can't determine the size of my arrayType for >> > global variable in doInitializa...
2013 Aug 05
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...ineFunctionPass ? >>>> > >>>> > Hello, >>>> > >>>> > I want to add a global variable of arrayType in my >>>> MachineFunctionPass. >>>> > However, I only get const Module from >>>> > MachineFunction.getMMI().getModule(). >>>> > I can't add any global variable to a const Module. >>>> > Another way is to add a global variable in doInitialization in my >>>> > MachineFunctionPass, but I can't determine the size of my arrayType >>>> for >...
2013 Aug 06
2
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...t;>> > >>>>> > Hello, >>>>> > >>>>> > I want to add a global variable of arrayType in my >>>>> MachineFunctionPass. >>>>> > However, I only get const Module from >>>>> > MachineFunction.getMMI().getModule(). >>>>> > I can't add any global variable to a const Module. >>>>> > Another way is to add a global variable in doInitialization in my >>>>> > MachineFunctionPass, but I can't determine the size of my arrayType >>>&...
2013 Aug 07
2
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...; Hello, >>>>>>> > >>>>>>> > I want to add a global variable of arrayType in my >>>>>>> MachineFunctionPass. >>>>>>> > However, I only get const Module from >>>>>>> > MachineFunction.getMMI().getModule(). >>>>>>> > I can't add any global variable to a const Module. >>>>>>> > Another way is to add a global variable in doInitialization in my >>>>>>> > MachineFunctionPass, but I can't determine the size of my...
2013 Aug 06
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...>>>> > Hello, >>>>>> > >>>>>> > I want to add a global variable of arrayType in my >>>>>> MachineFunctionPass. >>>>>> > However, I only get const Module from >>>>>> > MachineFunction.getMMI().getModule(). >>>>>> > I can't add any global variable to a const Module. >>>>>> > Another way is to add a global variable in doInitialization in my >>>>>> > MachineFunctionPass, but I can't determine the size of my arrayType &...
2020 Nov 12
0
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...> /* Inserts push rcx followed by pop rcx before each MachineBasicBlock */ > void VirtualTimeManager::__insertVtlLogic(MachineFunction &MF, > MachineBasicBlock* origMBB) { > const llvm::TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); > auto MMI = &MF.getMMI(); > llvm::Module &M = const_cast<Module &>(*MMI->getModule()); > if (origMBB->empty() || !origMBB->isLegalToHoistInto()) > return; > llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), > TII.get(X86::POP64r)).addReg(X86::RCX);...
2013 Aug 08
2
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...;> > >>>>>>>>> > I want to add a global variable of arrayType in my >>>>>>>>> MachineFunctionPass. >>>>>>>>> > However, I only get const Module from >>>>>>>>> > MachineFunction.getMMI().getModule(). >>>>>>>>> > I can't add any global variable to a const Module. >>>>>>>>> > Another way is to add a global variable in doInitialization in my >>>>>>>>> > MachineFunctionPass, but I can't...
2013 Aug 07
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...;>>>>> > >>>>>>>> > I want to add a global variable of arrayType in my >>>>>>>> MachineFunctionPass. >>>>>>>> > However, I only get const Module from >>>>>>>> > MachineFunction.getMMI().getModule(). >>>>>>>> > I can't add any global variable to a const Module. >>>>>>>> > Another way is to add a global variable in doInitialization in my >>>>>>>> > MachineFunctionPass, but I can't determine th...
2015 Aug 05
2
[LLVMdev] Cc llvmdev: Re: llvm bpf debug info. Re: [RFC PATCH v4 3/3] bpf: Introduce function for outputing data to perf event
On 8/4/15 11:51 PM, Wangnan (F) wrote: > void bpf_store_half(void *skb, int off, int val) > asm("llvm.bpf.store.half"); > int func() > { > bpf_store_half(0, 0, 0); > return 0; > } > > Compiled with: > > $ clang -g -target bpf -O2 -S -c test.c > > And get this: > > .text > .globl func > .align
2013 Aug 08
0
[LLVMdev] Can I add GlobalVariable in MachineFunctionPass ?
...gt;>>>>>>>> > I want to add a global variable of arrayType in my >>>>>>>>>> MachineFunctionPass. >>>>>>>>>> > However, I only get const Module from >>>>>>>>>> > MachineFunction.getMMI().getModule(). >>>>>>>>>> > I can't add any global variable to a const Module. >>>>>>>>>> > Another way is to add a global variable in doInitialization in >>>>>>>>>> my >>>>>>>&g...
2018 Sep 22
3
Quick question: How to BuildMI mov64mi32 arbitrary MMB address to memory
Dear Mr. Northover, Thank you for the quick reply. You are correct about the address-mode operands :) . I guess an important detail left out was that the basic block (call it A) that wants to calculate the address of the target stationary trampoline basic block (call it B) will be moved around in memory during run-time. Our earlier solution, before the feature was implemented to move around (A)