http://llvm.org/bugs/show_bug.cgi?id=19693

            Bug ID: 19693
           Summary: Extend the expressivity of isCommutable
           Product: tools
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: TableGen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Currently when an instruction has commutable arguments, one can set the
isCommutable bit on the definition of the instruction.
By default the isCommutable flag implies that the first two register arguments
of the instruction are commutable.
To change that, one has to implement the related logic in
XXXXTarget::findCommutedOpIndices.

This is error prone and it would be nice to have this information in the td
file instead of having to write separate C++ code.

X86 has one such example with the vfmadd231XXX instruction.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to