Displaying 2 results from an estimated 2 matches for "objectidx".
Did you mean:
objectid
2010 Apr 12
1
[LLVMdev] Question. about Machinefunction pass, funtion Prolog/Epilog code, stack frame
...nts.
1. how can we add special code for the Prolog/Epilog for some
certain functions, this should be done with machinefunction pass, rt?
2. Basically, I want to get the function stack frame, that is the size and
the initial position.
I found
int64_t llvm::MachineFrameInfo::getObjectSize ( int *ObjectIdx* )
const[inline]
This method is done before or after the mapping of virtual registers?
3. the program code will be at .text section, suppose we are going to
move the code from .text to somewhere else, how can we get the
start and the length of the effective code,
Thanks.
--
-------------- next p...
2018 May 31
0
Debugging a issue in MachineFrameInfo?
Hi all:
I wrote some IR transform passes that works perfectly fine at IR level and running through opt -verify on the yielded IR results in no error.
However when I try to compile the transformed IR into object code using llc Output.ll -filetype=obj , it asserts out with Assertion failed: (unsigned(ObjectIdx+NumFixedObjects) < Objects.size() && "Invalid Object Idx!"), function getObjectAlignment, file include/llvm/CodeGen/MachineFrameInfo.h, line 424.
I'm currently using LLVM 6.0 release version and it would be great if someone could point out the correct way to fix this i...