[llvm] 306370b - [AArch64] Fix namespace issue. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu May 6 11:16:16 PDT 2021
Author: Fangrui Song
Date: 2021-05-06T11:16:07-07:00
New Revision: 306370be0bf2257124c262ae5c8a7a7180eb42a0
URL: https://github.com/llvm/llvm-project/commit/306370be0bf2257124c262ae5c8a7a7180eb42a0
DIFF: https://github.com/llvm/llvm-project/commit/306370be0bf2257124c262ae5c8a7a7180eb42a0.diff
LOG: [AArch64] Fix namespace issue. NFC
Added:
Modified:
llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp b/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
index 10dec93ffae4..16bea0655511 100644
--- a/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
+++ b/llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
@@ -21,6 +21,7 @@
//
//===----------------------------------------------------------------------===//
+#include "AArch64.h"
#include "Utils/AArch64BaseInfo.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SetVector.h"
@@ -85,9 +86,9 @@ INITIALIZE_PASS_BEGIN(SVEIntrinsicOpts, DEBUG_TYPE, name, false, false)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass);
INITIALIZE_PASS_END(SVEIntrinsicOpts, DEBUG_TYPE, name, false, false)
-namespace llvm {
-ModulePass *createSVEIntrinsicOptsPass() { return new SVEIntrinsicOpts(); }
-} // namespace llvm
+ModulePass *llvm::createSVEIntrinsicOptsPass() {
+ return new SVEIntrinsicOpts();
+}
/// Checks if a ptrue intrinsic call is promoted. The act of promoting a
/// ptrue will introduce zeroing. For example:
@@ -101,7 +102,7 @@ ModulePass *createSVEIntrinsicOptsPass() { return new SVEIntrinsicOpts(); }
/// <vscale x 4 x i1> => <vscale x 16 x i1> => <vscale x 8 x i1>
///
/// via a sequence of the SVE reinterpret intrinsics convert.{to,from}.svbool.
-bool isPTruePromoted(IntrinsicInst *PTrue) {
+static bool isPTruePromoted(IntrinsicInst *PTrue) {
// Find all users of this intrinsic that are calls to convert-to-svbool
// reinterpret intrinsics.
SmallVector<IntrinsicInst *, 4> ConvertToUses;
More information about the llvm-commits
mailing list