[LLVMdev] Question about isel patterns

Eli Friedman eli.friedman at gmail.com
Tue Jan 17 19:34:03 PST 2012


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