[llvm] [ARM][WebAssembly] Remove unused PatternMatch namespace. NFC. (PR #147984)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 08:18:09 PDT 2025
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/147984
Avoid file-level "using namespace llvm::PatternMatch" to make it easier to potentially use SDPatternMatch in the future.
>From 461ab5197e565164208525f91e1ae53aafe8103e Mon Sep 17 00:00:00 2001
From: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: Thu, 10 Jul 2025 16:15:40 +0100
Subject: [PATCH] [ARM][WebAssembly] Remove unused PatternMatch namespace. NFC.
Avoid file-level "using namespace llvm::PatternMatch" to make it easier to potentially use SDPatternMatch in the future.
---
llvm/lib/Target/ARM/ARMISelLowering.cpp | 1 -
llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp | 2 --
2 files changed, 3 deletions(-)
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"
More information about the llvm-commits
mailing list