[llvm-commits] [llvm] r105886 - in /llvm/trunk: include/llvm/Target/TargetInstrItineraries.h utils/TableGen/NeonEmitter.cpp
Chris Lattner
sabre at nondot.org
Sat Jun 12 08:46:56 PDT 2010
Author: lattner
Date: Sat Jun 12 10:46:56 2010
New Revision: 105886
URL: http://llvm.org/viewvc/llvm-project?rev=105886&view=rev
Log:
declare a class with 'class' instead of struct to avoid tag mismatch
warnings, and don't shift by a bool. Patch by Rizky Herucakra!
Modified:
llvm/trunk/include/llvm/Target/TargetInstrItineraries.h
llvm/trunk/utils/TableGen/NeonEmitter.cpp
Modified: llvm/trunk/include/llvm/Target/TargetInstrItineraries.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetInstrItineraries.h?rev=105886&r1=105885&r2=105886&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetInstrItineraries.h (original)
+++ llvm/trunk/include/llvm/Target/TargetInstrItineraries.h Sat Jun 12 10:46:56 2010
@@ -106,7 +106,8 @@
/// 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
Modified: llvm/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/NeonEmitter.cpp?rev=105886&r1=105885&r2=105886&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/NeonEmitter.cpp Sat Jun 12 10:46:56 2010
@@ -669,7 +669,7 @@
case 'h': nElts = 4; break;
case 'f': nElts = 2; break;
}
- nElts <<= quad;
+ if (quad) nElts <<= 1;
char arg = 'a';
std::string s;
More information about the llvm-commits
mailing list