search for: xyzframelow

Displaying 8 results from an estimated 8 matches for "xyzframelow".

2019 Dec 21
2
accessing stack frame after returning from the function
Hello, I have a few general questions. 1. Whether the memory contents assigned for a function are accessible after we return from that function? If yes, how can we access it? 2. Does llvm delete the stackframe assigned for a specific function, after we return from that function? 3. If not, how can we delete the stackframe or clear the memory content after we return from the function? Where do
2016 May 06
2
Spill code
Hi, Is it possible to add a spill code (a pair of store /load ) to the machinecode in a pass before the instruction emitter? If so, how can I calculate the address (offset to the sp) for the spill store/load instructions? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 Jan 16
0
Exception handling support for a target
...hen the source code itself contains "throw X"). So normally the directives are emitted in the prologue when the registers actually get saved. Sometimes all in a bunch, sometimes interspersed with the saves, but it usually doesn't matter which. As you've discovered that happens in XYZFrameLowering > - getExceptionPointerRegister and getExceptionSelectorRegister: > > TargetLowering subclass should implement both functions. The former > specifies the register used to pass the exception object to the landing pad > (or catch clause), and the latter specifies the regist...
2016 May 12
3
Why LR is saved before calling a 'noreturn' function ?
Dear all, I don't get how llvm handles functions with __attribute__((noreturn)). It seems that LR register is backed up on the stack whilst it will never be used to return from a 'noreturn' function. I have this problem with a home-made backend but it seems that ARM flavour of clang has same behaviour. By the way, SP is also saved, I don't understand why. Is there a syntax error
2018 Jan 15
5
Exception handling support for a target
Hi All, I would like to know in order to support exception handling for particular target, what need to be done. After doing some investigation, I can think of the following items with questions: - CFI directives: This is for .eh_frame section. Basically all the targets insert CFI directives in FrameLowering, but I am not sure exactly when/where I should do so. -
2019 Mar 13
2
llvm combines "ADD frameindex, constant" to OR
Hi all, I've been working on a backend of our architecture and noticed llvm performs following combining although one of operands is FrameIndex. Combining: t114: i64 = add FrameIndex:i64<0>, Constant:i64<56> Creating new node: t121: i64 = or FrameIndex:i64<0>, Constant:i64<56> ... into: t121: i64 = or FrameIndex:i64<0>, Constant:i64<56> This
2014 Nov 06
3
[LLVMdev] How to allocate redundant stack slot?
Hi all, Sorry to bother those not interested. I am a newbie to LLVM. I have a problem on allocating additional stack slot for checkpointing. However, I have no idea on how to allocate redundant stack slot in llvm. Any suggestions? Thanks, Ray -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 Jan 16
2
Exception handling support for a target
...lf contains "throw X"). > > So normally the directives are emitted in the prologue when the > registers actually get saved. Sometimes all in a bunch, sometimes > interspersed with the saves, but it usually doesn't matter which. As > you've discovered that happens in XYZFrameLowering ​Do we have to emit directives in the epilogue, too?​ One of my test case fail due to the directives in the epilogue have been executed. After remov ​ing them from epilogue, the exception is caught as expected. Also, the directives are also for debug purpose (.debug_frame), right? I guess I...