Skip to content

Commit 4dc67e7

Browse files
committed
Remove build artifacts
1 parent b103a4d commit 4dc67e7

21 files changed

+49
-47
lines changed

git-push.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
git add -A
2+
git commit -m "Remove build artifacts"
3+
git push --set-upstream origin main --force

include/toy/AST.h renamed to include/AST.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#ifndef TOY_AST_H
1616
#define TOY_AST_H
1717

18-
#include "toy/Lexer.h"
18+
#include "Lexer.h"
1919

2020
#include "llvm/ADT/ArrayRef.h"
2121
#include "llvm/ADT/StringRef.h"

include/CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
add_subdirectory(toy)
1+
# Most dialects should use add_mlir_dialect(). See examples/standalone.
2+
set(LLVM_TARGET_DEFINITIONS Ops.td)
3+
mlir_tablegen(Ops.h.inc -gen-op-decls)
4+
mlir_tablegen(Ops.cpp.inc -gen-op-defs)
5+
mlir_tablegen(Dialect.h.inc -gen-dialect-decls)
6+
mlir_tablegen(Dialect.cpp.inc -gen-dialect-defs)
7+
add_public_tablegen_target(ToyCh7OpsIncGen)
8+
9+
# Most dialects should use add_mlir_interfaces().
10+
set(LLVM_TARGET_DEFINITIONS ShapeInferenceInterface.td)
11+
mlir_tablegen(ShapeInferenceOpInterfaces.h.inc -gen-op-interface-decls)
12+
mlir_tablegen(ShapeInferenceOpInterfaces.cpp.inc -gen-op-interface-defs)
13+
add_public_tablegen_target(ToyCh7ShapeInferenceInterfaceIncGen)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "mlir/Interfaces/CastInterfaces.h"
2323
#include "mlir/Interfaces/FunctionInterfaces.h"
2424
#include "mlir/Interfaces/SideEffectInterfaces.h"
25-
#include "toy/ShapeInferenceInterface.h"
25+
#include "ShapeInferenceInterface.h"
2626

2727
namespace mlir {
2828
namespace toy {
@@ -34,7 +34,7 @@ struct StructTypeStorage;
3434

3535
/// Include the auto-generated header file containing the declaration of the toy
3636
/// dialect.
37-
#include "toy/Dialect.h.inc"
37+
#include "Dialect.h.inc"
3838

3939
//===----------------------------------------------------------------------===//
4040
// Toy Operations
@@ -43,7 +43,7 @@ struct StructTypeStorage;
4343
/// Include the auto-generated header file containing the declarations of the
4444
/// toy operations.
4545
#define GET_OP_CLASSES
46-
#include "toy/Ops.h.inc"
46+
#include "Ops.h.inc"
4747

4848
namespace mlir {
4949
namespace toy {
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include "mlir/IR/SymbolInterfaces.td"
1818
include "mlir/Interfaces/CallInterfaces.td"
1919
include "mlir/Interfaces/CastInterfaces.td"
2020
include "mlir/Interfaces/SideEffectInterfaces.td"
21-
include "toy/ShapeInferenceInterface.td"
21+
include "ShapeInferenceInterface.td"
2222

2323
// Provide a definition of the 'toy' dialect in the ODS framework so that we
2424
// can define our operations.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#ifndef TOY_PARSER_H
1515
#define TOY_PARSER_H
1616

17-
#include "toy/AST.h"
18-
#include "toy/Lexer.h"
17+
#include "AST.h"
18+
#include "Lexer.h"
1919

2020
#include "llvm/ADT/STLExtras.h"
2121
#include "llvm/ADT/StringExtras.h"
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace mlir {
2020
namespace toy {
2121

2222
/// Include the auto-generated declarations.
23-
#include "toy/ShapeInferenceOpInterfaces.h.inc"
23+
#include "ShapeInferenceOpInterfaces.h.inc"
2424

2525
} // namespace toy
2626
} // namespace mlir

0 commit comments

Comments
 (0)