[LLVMdev] Probably FAQ: can you insert BRCONDs during TargetLowering::LowerOperation?
Evan Cheng
evan.cheng at apple.com
Fri Jan 9 10:45:41 PST 2009
On Jan 7, 2009, at 9:21 AM, Scott Michel wrote:
> Chris:
>
> It occurred to me this morning that maybe the general solution to
> this particular type of problem is a custom/target-dependent DAG
> inserter pass, analogous to target lowering and DAG legalization. I'm
> not sure if this pass happens before or after legalization. Worth
> considering?
That doesn't seem much cleaner than the current hack. The correct
solution, which we intend to pursue some day, is to do whole function
instruction selection.
Evan
>
>
> I suppose the best way to discuss this is to just write the code.
> However, some preliminary discussion is probably worthwhile to make
> sure that a target-dependent DAG inserter pass is invoked in the
> right place in the existing pass stream.
>
>
> -scooter
>
> On Jan 7, 2009, at 12:18 AM, Chris Lattner wrote:
>
>>
>> On Jan 6, 2009, at 11:37 PM, Scott Michel wrote:
>>
>>> Chris:
>>>
>>> I was trying to avoid using the custom instruction emitter method.
>>> Not as if I didn't look before I asked the question to see if there
>>> was an easier way.
>>
>> Then no, there is no other way.
>>
>> -Chris
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> 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