diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-06-12 15:46:56 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-06-12 15:46:56 +0000 |
| commit | 05466ef7ebfe32255579dccd6063f21579db7679 (patch) | |
| tree | 16b06cf026c2e16bf80393539303e8a808f6e34c | |
| parent | c9af18a50204ed1b4cb3279dcb153bf750474fbd (diff) | |
| download | bcm5719-llvm-05466ef7ebfe32255579dccd6063f21579db7679.tar.gz bcm5719-llvm-05466ef7ebfe32255579dccd6063f21579db7679.zip | |
declare a class with 'class' instead of struct to avoid tag mismatch
warnings, and don't shift by a bool. Patch by Rizky Herucakra!
llvm-svn: 105886
| -rw-r--r-- | llvm/include/llvm/Target/TargetInstrItineraries.h | 3 | ||||
| -rw-r--r-- | llvm/utils/TableGen/NeonEmitter.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Target/TargetInstrItineraries.h b/llvm/include/llvm/Target/TargetInstrItineraries.h index 3dfa8bc10bf..39648c233fa 100644 --- a/llvm/include/llvm/Target/TargetInstrItineraries.h +++ b/llvm/include/llvm/Target/TargetInstrItineraries.h @@ -106,7 +106,8 @@ struct InstrItinerary { /// Instruction itinerary Data - Itinerary data supplied by a subtarget to be /// used by a target. /// -struct InstrItineraryData { +class InstrItineraryData { +public: const InstrStage *Stages; ///< Array of stages selected const unsigned *OperandCycles; ///< Array of operand cycles selected const InstrItinerary *Itineratries; ///< Array of itineraries selected diff --git a/llvm/utils/TableGen/NeonEmitter.cpp b/llvm/utils/TableGen/NeonEmitter.cpp index 3c7a9fee007..6c5f86290da 100644 --- a/llvm/utils/TableGen/NeonEmitter.cpp +++ b/llvm/utils/TableGen/NeonEmitter.cpp @@ -669,7 +669,7 @@ static std::string GenBuiltin(const std::string &name, const std::string &proto, case 'h': nElts = 4; break; case 'f': nElts = 2; break; } - nElts <<= quad; + if (quad) nElts <<= 1; char arg = 'a'; std::string s; |

