[llvm] [ARM][WebAssembly] Remove unused PatternMatch namespace. NFC. (PR #147984)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 08:18:42 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-webassembly
@llvm/pr-subscribers-backend-arm
Author: Simon Pilgrim (RKSimon)
<details>
<summary>Changes</summary>
Avoid file-level "using namespace llvm::PatternMatch" to make it easier to potentially use SDPatternMatch in the future.
---
Full diff: https://github.com/llvm/llvm-project/pull/147984.diff
2 Files Affected:
- (modified) llvm/lib/Target/ARM/ARMISelLowering.cpp (-1)
- (modified) llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp (-2)
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index cbd43cde78548..87f00bb3f9e75 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -115,7 +115,6 @@
#include <vector>
using namespace llvm;
-using namespace llvm::PatternMatch;
#define DEBUG_TYPE "arm-isel"
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index b2ea784057780..ec95e86e4fe3d 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -35,10 +35,8 @@
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Operator.h"
-#include "llvm/IR/PatternMatch.h"
using namespace llvm;
-using namespace PatternMatch;
#define DEBUG_TYPE "wasm-fastisel"
``````````
</details>
https://github.com/llvm/llvm-project/pull/147984
More information about the llvm-commits
mailing list