[llvm-dev] Instruction selection for 'load' based on static vs. dynamic data

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue May 9 07:28:22 PDT 2017


On 5/9/2017 8:16 AM, Dr. ERDI Gergo wrote:
> 
> Can I also use something more complex than a single machine load 
> instruction here? I.e. can I write something like
> 
> def: Pat<(ld (add (WRAPPER RC:$addr), (sign_extend RC:$offset))),
>           (load_instruction_rr (special_add RC:$addr, RC:$offset))>;
> 
> ? Or do I have to go via some pseudo-instruction for that?

You can have any tree of machine instructions as the output.

-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