[LLVMdev] Passing specific register for an Instruction in target description files.

Tom Stellard tom at stellard.net
Wed Jul 2 13:00:11 PDT 2014


On Wed, Jul 02, 2014 at 11:15:52AM -0700, Arsen Hakobyan wrote:
> Hi Tom,
> 
> Thank you for the information!
> 
> Actually I am using an approach you have suggested (if I am not
> misunderstood). I am generating a new SDNode then copying all the options
> and operands from the target SDNode replacing the operand with a new one but
> already using the required register. All this stuff I am doing in DAGtoDAG
> selection phase.
>

I guess this would work too, but what I was suggesting was to use
 EmitInstrWithCustomInserter is called after ISel once the DAG has been
converted to MachineInstrs.

-Tom
 
> But I think the other approach suggested by Quentin could be also convenient
> for my situation. I am not sure therefore I am just trying to get result
> with this approach too. (for now I have to resolve some other issues to get
> the final assembly code generated with this flow).
> 
> I will post my results here when I will finish successfully. 
> 
> But If there will be other suggestion: any ideas are welcomed!
> 
> Thanks,
> Arsen
> 
> 
> 
> --
> View this message in context: http://llvm.1065342.n5.nabble.com/Passing-specific-register-for-an-Instruction-in-target-description-files-tp69662p70127.html
> Sent from the LLVM - Dev mailing list archive at Nabble.com.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list