[LLVMdev] Question about isel patterns

Akira Hatanaka ahatanak at gmail.com
Tue Jan 17 22:48:49 PST 2012


For some reason, I never thought of doing that.

Thank you for the tip.

On Tue, Jan 17, 2012 at 7:34 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Jan 17, 2012 at 7:04 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
>> I am looking for a way to define patterns without specifying the type
>> of the root node in the RHS result.
>> I want to be able to write something like this:
>>
>> def : Pat<(i64 imm:$in), (GenDAG imm:$in)>;
>> (GenDAG is a custom function that returns the DAG that replaces the
>> node in the LHS.)
>
> Why not just add a case to MipsDAGToDAGISel::Select?
>
> -Eli



More information about the llvm-dev mailing list