[llvm-dev] Passing inormation from pass to lowering
Sam Parker via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 27 04:46:38 PDT 2020
Could you use intrinsics instead? Or modify the IR directly to inline and perform a br instead of a call?
Compilation Tools Engineer | Arm
. . . . . . . . . . . . . . . . . . . . . . . . . . .
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Felix Berlakovich via llvm-dev <llvm-dev at lists.llvm.org>
Sent: 27 March 2020 08:28
To: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
Subject: [llvm-dev] Passing inormation from pass to lowering
I have written a ModulePass that calculates various things and adds custom metadata attributes to certain instructions. Depending on the attributes, I would like to change the machine code of these instructions. For example, I would like to replace certain calls with jumps, but as far as I can tell the IR metadata is not accessible anymore on the level of machine instructions (e.g. in the AsmPrinter). What is the best way to pass the information calculated by the pass (e.g the attributes) to the part where the target specific instructions are emitted?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev