diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-21 09:00:29 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-21 09:00:29 +0000 |
commit | 9fbc7e2e7a765298fb4326885b407e0962f7ab62 (patch) | |
tree | d57e9c6df9132b004dacd529f2e4549f955d2cf1 /include/llvm | |
parent | d3be46214ca75f0ba7d5fc6cd322d222dd53e2cb (diff) | |
download | external_llvm-9fbc7e2e7a765298fb4326885b407e0962f7ab62.zip external_llvm-9fbc7e2e7a765298fb4326885b407e0962f7ab62.tar.gz external_llvm-9fbc7e2e7a765298fb4326885b407e0962f7ab62.tar.bz2 |
Cleanup whitespace and comments, and tweak some
prototypes, in operand type legalization. No
functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62680 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 0e9a654..23238ad 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1131,23 +1131,22 @@ public: return SDValue(); } - /// LowerOperationWrapper - This callback is invoked by the type legalizer - /// to legalize operation with illegal operand types but legal result types; + /// LowerOperationWrapper - This callback is invoked by the type legalizer + /// to legalize nodes with an illegal operand type but legal result types. /// It replaces the LowerOperation callback in the type Legalizer. - /// The reason we can not do away with LowerOperation entirely is that + /// The reason we can not do away with LowerOperation entirely is that /// LegalizeDAG isn't yet ready to use this callback. - - /// The target places new result values for the node in Results (their number - /// and types must exactly match those of the original return values of - /// the node), or leaves Results empty, which indicates that the node is not - /// to be custom lowered after all. - /// In its default implementation it calls the LowerOperation. - - virtual void LowerOperationWrapper(SDValue Op, + /// TODO: Consider merging with ReplaceNodeResults. + + /// The target places new result values for the node in Results (their number + /// and types must exactly match those of the original return values of + /// the node), or leaves Results empty, which indicates that the node is not + /// to be custom lowered after all. + /// The default implementation calls LowerOperation. + virtual void LowerOperationWrapper(SDNode *N, SmallVectorImpl<SDValue> &Results, SelectionDAG &DAG); - /// LowerOperation - This callback is invoked for operations that are /// unsupported by the target, which are registered to use 'custom' lowering, /// and whose defined values are all legal. |