Displaying 3 results from an estimated 3 matches for "tp24778261p24845838".
2009 Aug 03
0
[LLVMdev] code-altering Passes for llc
Does the error function *have* to be auto-generated in your pass?
Perhaps the original code should use invokes, and your pass insert the
error check with a jne to the "unwind" block.
On Mon, Aug 3, 2009 at 5:18 AM, Artjom
Kochtchi<artjom.kochtchi at googlemail.com> wrote:
>
>
> Dan Gohman-2 wrote:
>>
>> You don't need a ModulePass to modify a CFG. A
2009 Aug 03
2
[LLVMdev] code-altering Passes for llc
Dan Gohman-2 wrote:
>
> You don't need a ModulePass to modify a CFG. A MachineFunctionPass
> is fine for this.
>
Well, okay. But I need to insert some BasicBlock that contains the error
handling (that the runtime check jumpts to on failure). Just putting another
MachineBasicBlock at the beginning of some arbitrary MachineFunction doesn't
seem to be the right way to go, does
2009 Aug 06
2
[LLVMdev] code-altering Passes for llc
...ditional
(Machine)BasicBlock (or rather a MachineFunction?) somewhere in the program
that contains the program termination and that I can jump to on check
failure. Can't I do that during a Pass in llc?
-Artjom
--
View this message in context: http://www.nabble.com/code-altering-Passes-for-llc-tp24778261p24845838.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.