[llvm-dev] [llvm] Query the target from an opt pass?

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 3 11:20:32 PDT 2018


On 4/3/2018 1:15 PM, Kevin Neal via llvm-dev wrote:
> 
> Branches in the middle of a basic block seems ... incorrect. Is there a
> good way to get ahold of the correct TargetLoweringBase from a pass?

 From a pass running on LLVM IR (as opposed to CodeGen)? There isn't.

What you could do is that you could generate a pseudo-instruction and 
expand it later in a CodeGen pass.

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list