diff options
author | Dan Gohman <gohman@apple.com> | 2011-07-15 21:42:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-07-15 21:42:20 +0000 |
commit | ad94608b1f9bd8857f8210a8ab33c1fa0f1aaf8d (patch) | |
tree | f14f0e2092a0d7a7d57b6c039c5815944abe987f /llvm/lib/CodeGen | |
parent | f5d99dc2cc4a180fe73b575c6cb079a94f0bb949 (diff) | |
download | bcm5719-llvm-ad94608b1f9bd8857f8210a8ab33c1fa0f1aaf8d.tar.gz bcm5719-llvm-ad94608b1f9bd8857f8210a8ab33c1fa0f1aaf8d.zip |
Modernize comments.
llvm-svn: 135305
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 308150fe54a..418a4d4ff09 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -103,9 +103,8 @@ public: void LegalizeDAG(); private: - /// LegalizeOp - We know that the specified value has a legal type. - /// Recursively ensure that the operands have legal types, then return the - /// result. + /// LegalizeOp - Return a legal replacement for the given operation, with + /// all legal operands. SDValue LegalizeOp(SDValue O); SDValue OptimizeFloatStore(StoreSDNode *ST); @@ -794,10 +793,8 @@ SDValue SelectionDAGLegalize::OptimizeFloatStore(StoreSDNode* ST) { return SDValue(0, 0); } -/// LegalizeOp - We know that the specified value has a legal type, and -/// that its operands are legal. Now ensure that the operation itself -/// is legal, recursively ensuring that the operands' operations remain -/// legal. +/// LegalizeOp - Return a legal replacement for the given operation, with +/// all legal operands. SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) { if (Op.getOpcode() == ISD::TargetConstant) // Allow illegal target nodes. return Op; |