Displaying 4 results from an estimated 4 matches for "processfunctionbeforeframefin".
2012 Aug 06
1
[LLVMdev] processFunctionBeforeFrameFinalized setting object offset without effect, stack frame layout wrong
Hi,
Target overrides of processFunctionBeforeFrameFinalized() are misused
in two cases (MBlaze and PowerPC) to set the offsets of objects. Unfortunately
this has no effect because the offsets are immediately reset by
calculateFrameObjectOffsets().
The PowerPC backend does this to setup the stack frame layout according to
the ABI. Ie. it spills the r...
2008 Dec 29
2
[LLVMdev] Controlling the stack layout
Hi Anton,
Anton Korobeynikov wrote:
> I don't see any huge problems with writing such pass: just create
> stack frame objects at fixed offsets inside your MF pass - and you'll
> done. The only problem is that you need to do this early - before
> prologue / epilogue inserter code runs, since afterwards stack frame
> layout is almostly finalized (at "high level")
2008 Dec 29
0
[LLVMdev] Controlling the stack layout
...icolas
> Could you point me where those hooks are in the llvm code? I didn't find
> any.
Look into PrologEpilogInserter.cpp::PEI::runOnMachineFunction(). There
are calls to hooks inside TargetRegisterInfo:
TargetRegisterInfo::processFunctionBeforeCalleeSavedScan() and
TargetRegisterInfo::processFunctionBeforeFrameFinalized().
Maybe they are not so convenient when working via JIT but at least
you'll know the place, where all stack-related stuff is being cooked
:)
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2019 May 13
2
Issues to implement a backend
Hi, All
I am trying to implement a llvm backend. But I encountered the following problem when running the backend:
"Fatal error: error in backend: WinEH not implemented for this target"
This error is triggered by function processFunctionBeforeFrameFinalized() defined in class TargetFrameLowering.
Can anyone help? Thanks a lot!
Zhiguo
[cid:image001.jpg at 01D50970.C9344210]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190513/6d866094/attachment-0001....