diff options
author | Eric Christopher <echristo@apple.com> | 2011-04-28 05:49:04 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-04-28 05:49:04 +0000 |
commit | 8f232d307ace42180961856f69541b95b3278295 (patch) | |
tree | 624a5f5124c6850bacb372341547bf513677eeb7 /include | |
parent | 4c19b17a17ee1379b455f8dc4796af518dcb45e3 (diff) | |
download | external_llvm-8f232d307ace42180961856f69541b95b3278295.zip external_llvm-8f232d307ace42180961856f69541b95b3278295.tar.gz external_llvm-8f232d307ace42180961856f69541b95b3278295.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Target/TargetSelectionDAG.td | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetSelectionDAG.td b/include/llvm/Target/TargetSelectionDAG.td index 3deb0ef..ff8d07d 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; } |