summaryrefslogtreecommitdiff
path: root/include/llvm/Target/TargetSelectionDAG.td
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-28 05:49:04 +0000
committerEric Christopher <echristo@apple.com>2011-04-28 05:49:04 +0000
commit8f232d307ace42180961856f69541b95b3278295 (patch)
tree624a5f5124c6850bacb372341547bf513677eeb7 /include/llvm/Target/TargetSelectionDAG.td
parent4c19b17a17ee1379b455f8dc4796af518dcb45e3 (diff)
downloadllvm-8f232d307ace42180961856f69541b95b3278295.tar.gz
llvm-8f232d307ace42180961856f69541b95b3278295.tar.bz2
llvm-8f232d307ace42180961856f69541b95b3278295.tar.xz
Let the immediate leaf pattern take transforms and switch the signed
immediate patterns in arm to using the pattern. Handles rdar://9299434 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetSelectionDAG.td')
-rw-r--r--include/llvm/Target/TargetSelectionDAG.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetSelectionDAG.td b/include/llvm/Target/TargetSelectionDAG.td
index 3deb0efdaf..ff8d07de03 100644
--- a/include/llvm/Target/TargetSelectionDAG.td
+++ b/include/llvm/Target/TargetSelectionDAG.td
@@ -543,8 +543,8 @@ class PatLeaf<dag frag, code pred = [{}], SDNodeXForm xform = NOOP_SDNodeXForm>
// If FastIsel should ignore all instructions that have an operand of this type,
// the FastIselShouldIgnore flag can be set. This is an optimization to reduce
// the code size of the generated fast instruction selector.
-class ImmLeaf<ValueType vt, code pred>
- : PatFrag<(ops), (vt imm)> {
+class ImmLeaf<ValueType vt, code pred, SDNodeXForm xform = NOOP_SDNodeXForm>
+ : PatFrag<(ops), (vt imm), [{}], xform> {
let ImmediateCode = pred;
bit FastIselShouldIgnore = 0;
}