[llvm] 797b767 - [IR] Move isConvergenceControlIntrinsic under "namespace llvm" (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 12 20:43:11 PDT 2023
Author: Kazu Hirata
Date: 2023-10-12T20:43:03-07:00
New Revision: 797b76791df4dbfc45f3002d2b9d58029495a63d
URL: https://github.com/llvm/llvm-project/commit/797b76791df4dbfc45f3002d2b9d58029495a63d
DIFF: https://github.com/llvm/llvm-project/commit/797b76791df4dbfc45f3002d2b9d58029495a63d.diff
LOG: [IR] Move isConvergenceControlIntrinsic under "namespace llvm" (NFC)
While I am at it, this patch removes "using namespace llvm;".
Added:
Modified:
llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h b/llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h
index 2ba81015cb7b641..e2ece30b1864184 100644
--- a/llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h
+++ b/llvm/include/llvm/IR/GenericConvergenceVerifierImpl.h
@@ -31,8 +31,6 @@
#include "llvm/ADT/Twine.h"
#include "llvm/IR/Intrinsics.h"
-using namespace llvm;
-
#define Check(C, ...) \
do { \
if (!(C)) { \
@@ -49,6 +47,7 @@ using namespace llvm;
} \
} while (false)
+namespace llvm {
static bool isConvergenceControlIntrinsic(unsigned IntrinsicID) {
switch (IntrinsicID) {
default:
@@ -60,7 +59,6 @@ static bool isConvergenceControlIntrinsic(unsigned IntrinsicID) {
}
}
-namespace llvm {
template <class ContextT> void GenericConvergenceVerifier<ContextT>::clear() {
Tokens.clear();
CI.clear();
More information about the llvm-commits
mailing list