Skip to content

Commit 92f1562

Browse files
committed
[mlir][NFC] Remove the STLExtras.h header file now that it has been merged into LLVM.
Now that no more utilities exist within, this file can be deleted. Differential Revision: https://reviews.llvm.org/D78079
1 parent ebf190f commit 92f1562

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5
-69
lines changed

llvm/unittests/ADT/TypeTraitsTest.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,16 @@ template <typename CallableT> struct CheckFunctionTraits {
3333
using FuncType = bool (*)(const int &);
3434
struct CheckFunctionPointer : CheckFunctionTraits<FuncType> {};
3535

36-
static bool func(const int &v);
37-
struct CheckFunctionPointer2 : CheckFunctionTraits<decltype(&func)> {};
38-
3936
/// Test method pointers.
4037
struct Foo {
4138
bool func(const int &v);
4239
};
4340
struct CheckMethodPointer : CheckFunctionTraits<decltype(&Foo::func)> {};
4441

4542
/// Test lambda references.
46-
auto lambdaFunc = [](const int &v) -> bool { return true; };
43+
LLVM_ATTRIBUTE_UNUSED auto lambdaFunc = [](const int &v) -> bool {
44+
return true;
45+
};
4746
struct CheckLambda : CheckFunctionTraits<decltype(lambdaFunc)> {};
4847

4948
} // end anonymous namespace
@@ -70,7 +69,7 @@ static_assert(!is_detected<has_foo_method_t, NoFooMethod>::value,
7069
// is_invocable
7170
//===----------------------------------------------------------------------===//
7271

73-
static void invocable_fn(int) {}
72+
void invocable_fn(int);
7473

7574
static_assert(is_invocable<decltype(invocable_fn), int>::value,
7675
"expected function to be invocable");

mlir/examples/toy/Ch1/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch2/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch3/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch4/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch5/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch6/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/examples/toy/Ch7/parser/AST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#include "toy/AST.h"
1414

15-
#include "mlir/Support/STLExtras.h"
1615
#include "llvm/ADT/Twine.h"
1716
#include "llvm/ADT/TypeSwitch.h"
1817
#include "llvm/Support/raw_ostream.h"

mlir/include/mlir/IR/Diagnostics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#define MLIR_IR_DIAGNOSTICS_H
1515

1616
#include "mlir/IR/Location.h"
17-
#include "mlir/Support/STLExtras.h"
1817
#include <functional>
1918

2019
namespace llvm {

mlir/include/mlir/Pass/PassOptions.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "mlir/Support/LLVM.h"
1818
#include "mlir/Support/LogicalResult.h"
19-
#include "mlir/Support/STLExtras.h"
2019
#include "llvm/ADT/StringRef.h"
2120
#include "llvm/Support/CommandLine.h"
2221
#include "llvm/Support/Compiler.h"

0 commit comments

Comments
 (0)