[NFC] Fix a few whitespace inconsistencies.
authorPaul Walker <paul.walker@arm.com>
Thu, 20 Oct 2022 11:53:58 +0000 (11:53 +0000)
committerPaul Walker <paul.walker@arm.com>
Thu, 20 Oct 2022 14:52:25 +0000 (14:52 +0000)
clang/include/clang/Basic/DiagnosticSemaKinds.td
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/Analysis/CostModel.cpp
llvm/lib/Analysis/VFABIDemangling.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/Passes/PassBuilderPipelines.cpp
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

index f8fe955..1ef1f23 100644 (file)
@@ -9960,10 +9960,10 @@ def err_argument_not_shifted_byte_or_xxff : Error<
   "argument should be an 8-bit value shifted by a multiple of 8 bits, or in the form 0x??FF">;
 def err_argument_not_contiguous_bit_field : Error<
   "argument %0 value should represent a contiguous bit field">;
-def err_rotation_argument_to_cadd
-    : Error<"argument should be the value 90 or 270">;
-def err_rotation_argument_to_cmla
-    : Error<"argument should be the value 0, 90, 180 or 270">;
+def err_rotation_argument_to_cadd : Error<
+  "argument should be the value 90 or 270">;
+def err_rotation_argument_to_cmla : Error<
+  "argument should be the value 0, 90, 180 or 270">;
 def warn_neon_vector_initializer_non_portable : Warning<
   "vector initializers are not compatible with NEON intrinsics in big endian "
   "mode">, InGroup<DiagGroup<"nonportable-vector-initialization">>;
index 371a70f..dfb65ce 100644 (file)
@@ -685,7 +685,7 @@ namespace llvm {
     DIGlobalVariable *createTempGlobalVariableFwdDecl(
         DIScope *Context, StringRef Name, StringRef LinkageName, DIFile *File,
         unsigned LineNo, DIType *Ty, bool IsLocalToUnit, MDNode *Decl = nullptr,
-        MDTuple *TemplateParams= nullptr, uint32_t AlignInBits = 0);
+        MDTuple *TemplateParams = nullptr, uint32_t AlignInBits = 0);
 
     /// Create a new descriptor for an auto variable.  This is a local variable
     /// that is not a subprogram parameter.
index c6a6852..1782b39 100644 (file)
@@ -109,6 +109,7 @@ void CostModelAnalysis::print(raw_ostream &OS, const Module*) const {
       else {
         Cost = TTI->getInstructionCost(&Inst, CostKind);
       }
+
       if (auto CostVal = Cost.getValue())
         OS << "Cost Model: Found an estimated cost of " << *CostVal;
       else
@@ -137,6 +138,7 @@ PreservedAnalyses CostModelPrinterPass::run(Function &F,
       else {
         Cost = TTI.getInstructionCost(&Inst, CostKind);
       }
+
       if (auto CostVal = Cost.getValue())
         OS << "Cost Model: Found an estimated cost of " << *CostVal;
       else
index fa483d0..aa38c39 100644 (file)
@@ -272,6 +272,7 @@ ParseRet tryParseAlign(StringRef &ParseString, Align &Alignment) {
 
   return ParseRet::None;
 }
+
 #ifndef NDEBUG
 // Verify the assumtion that all vectors in the signature of a vector
 // function have the same number of elements.
@@ -292,7 +293,6 @@ bool verifyAllVectorsHaveSameWidth(FunctionType *Signature) {
     return (EC == VTy->getElementCount());
   });
 }
-
 #endif // NDEBUG
 
 // Extract the VectorizationFactor from a given function signature,
index 685910c..563929a 100644 (file)
@@ -2297,7 +2297,7 @@ static bool isGEPKnownNonNull(const GEPOperator *GEP, unsigned Depth,
     }
 
     // If we have a zero-sized type, the index doesn't matter. Keep looping.
-    if (Q.DL.getTypeAllocSize(GTI.getIndexedType()).getKnownMinSize() == 0)
+    if (Q.DL.getTypeAllocSize(GTI.getIndexedType()).isZero())
       continue;
 
     // Fast path the constant operand case both for efficiency and so we don't
index 96d120d..7b8e042 100644 (file)
@@ -5243,7 +5243,6 @@ SDValue DAGTypeLegalizer::PromoteIntRes_VECTOR_SHUFFLE(SDNode *N) {
   return DAG.getVectorShuffle(OutVT, dl, V0, V1, NewMask);
 }
 
-
 SDValue DAGTypeLegalizer::PromoteIntRes_BUILD_VECTOR(SDNode *N) {
   EVT OutVT = N->getValueType(0);
   EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT);
index 6e39df3..4f1ef22 100644 (file)
@@ -204,7 +204,6 @@ PipelineTuningOptions::PipelineTuningOptions() {
 }
 
 namespace llvm {
-
 extern cl::opt<unsigned> MaxDevirtIterations;
 extern cl::opt<bool> EnableConstraintElimination;
 extern cl::opt<bool> EnableFunctionSpecialization;
@@ -221,14 +220,10 @@ extern cl::opt<bool> EnableDFAJumpThreading;
 extern cl::opt<bool> RunNewGVN;
 extern cl::opt<bool> RunPartialInlining;
 extern cl::opt<bool> ExtraVectorizerPasses;
-
 extern cl::opt<bool> FlattenedProfileUsed;
-
 extern cl::opt<AttributorRunOption> AttributorRun;
 extern cl::opt<bool> EnableKnowledgeRetention;
-
 extern cl::opt<bool> EnableMatrix;
-
 extern cl::opt<bool> DisablePreInliner;
 extern cl::opt<int> PreInlineThreshold;
 } // namespace llvm
index 2e9a9fe..7c73079 100644 (file)
@@ -188,6 +188,7 @@ public:
 struct VectorizationFactor {
   /// Vector width with best cost.
   ElementCount Width;
+
   /// Cost of the loop with that width.
   InstructionCost Cost;