Skip to content

Commit 6f138fe

Browse files
dj2Dawn LUCI CQ
authored andcommitted
[ir] Move ir to tint::core:ir namespace
Update the `tint::ir` namespace to the new `tint::core::ir` location. Bug: tint:1718 Change-Id: Id64e070328732302b64f75e7c73449a12528e824 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/147020 Commit-Queue: Dan Sinclair <[email protected]> Reviewed-by: Ben Clayton <[email protected]> Kokoro: Kokoro <[email protected]>
1 parent 248c8c9 commit 6f138fe

File tree

218 files changed

+1397
-1362
lines changed

Some content is hidden

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

218 files changed

+1397
-1362
lines changed

src/tint/cmd/tint/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ int main(int argc, const char** argv) {
10801080
} else {
10811081
auto mod = result.Move();
10821082
if (options.dump_ir) {
1083-
tint::ir::Disassembler d(mod);
1083+
tint::core::ir::Disassembler d(mod);
10841084
std::cout << d.Disassemble() << std::endl;
10851085
}
10861086
}

src/tint/lang/core/ir/access.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
#include <utility>
1818

19-
TINT_INSTANTIATE_TYPEINFO(tint::ir::Access);
19+
TINT_INSTANTIATE_TYPEINFO(tint::core::ir::Access);
2020

21-
namespace tint::ir {
21+
namespace tint::core::ir {
2222

2323
//! @cond Doxygen_Suppress
2424
Access::Access(InstructionResult* result, Value* object, VectorRef<Value*> indices) {
@@ -30,4 +30,4 @@ Access::Access(InstructionResult* result, Value* object, VectorRef<Value*> indic
3030
Access::~Access() = default;
3131
//! @endcond
3232

33-
} // namespace tint::ir
33+
} // namespace tint::core::ir

src/tint/lang/core/ir/access.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "src/tint/lang/core/ir/operand_instruction.h"
1919
#include "src/tint/utils/rtti/castable.h"
2020

21-
namespace tint::ir {
21+
namespace tint::core::ir {
2222

2323
/// An access instruction in the IR.
2424
class Access : public Castable<Access, OperandInstruction<3, 1>> {
@@ -50,6 +50,6 @@ class Access : public Castable<Access, OperandInstruction<3, 1>> {
5050
std::string_view FriendlyName() override { return "access"; }
5151
};
5252

53-
} // namespace tint::ir
53+
} // namespace tint::core::ir
5454

5555
#endif // SRC_TINT_LANG_CORE_IR_ACCESS_H_

src/tint/lang/core/ir/access_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
using namespace tint::core::fluent_types; // NOLINT
2222

23-
namespace tint::ir {
23+
namespace tint::core::ir {
2424
namespace {
2525

2626
using IR_AccessTest = IRTestHelper;
@@ -61,4 +61,4 @@ TEST_F(IR_AccessTest, Fail_NullType) {
6161
}
6262

6363
} // namespace
64-
} // namespace tint::ir
64+
} // namespace tint::core::ir

src/tint/lang/core/ir/binary.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
#include "src/tint/lang/core/ir/binary.h"
1616

17-
TINT_INSTANTIATE_TYPEINFO(tint::ir::Binary);
17+
TINT_INSTANTIATE_TYPEINFO(tint::core::ir::Binary);
1818

19-
namespace tint::ir {
19+
namespace tint::core::ir {
2020

2121
Binary::Binary(InstructionResult* result, enum Kind kind, Value* lhs, Value* rhs) : kind_(kind) {
2222
AddOperand(Binary::kLhsOperandOffset, lhs);
@@ -64,4 +64,4 @@ std::string_view ToString(enum Binary::Kind kind) {
6464
return "<unknown>";
6565
}
6666

67-
} // namespace tint::ir
67+
} // namespace tint::core::ir

src/tint/lang/core/ir/binary.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "src/tint/lang/core/ir/operand_instruction.h"
1919
#include "src/tint/utils/rtti/castable.h"
2020

21-
namespace tint::ir {
21+
namespace tint::core::ir {
2222

2323
/// A binary instruction in the IR.
2424
class Binary : public Castable<Binary, OperandInstruction<2, 1>> {
@@ -86,6 +86,6 @@ auto& operator<<(STREAM& out, enum Binary::Kind kind) {
8686
return out << ToString(kind);
8787
}
8888

89-
} // namespace tint::ir
89+
} // namespace tint::core::ir
9090

9191
#endif // SRC_TINT_LANG_CORE_IR_BINARY_H_

src/tint/lang/core/ir/binary_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using namespace tint::core::number_suffixes; // NOLINT
2323
using namespace tint::core::fluent_types; // NOLINT
2424

25-
namespace tint::ir {
25+
namespace tint::core::ir {
2626
namespace {
2727

2828
using IR_BinaryTest = IRTestHelper;
@@ -375,4 +375,4 @@ TEST_F(IR_BinaryTest, Binary_Usage_SetOperand) {
375375
}
376376

377377
} // namespace
378-
} // namespace tint::ir
378+
} // namespace tint::core::ir

src/tint/lang/core/ir/bitcast.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
#include "src/tint/lang/core/ir/bitcast.h"
1616

17-
TINT_INSTANTIATE_TYPEINFO(tint::ir::Bitcast);
17+
TINT_INSTANTIATE_TYPEINFO(tint::core::ir::Bitcast);
1818

19-
namespace tint::ir {
19+
namespace tint::core::ir {
2020

2121
Bitcast::Bitcast(InstructionResult* result, Value* val) {
2222
AddOperand(Bitcast::kValueOperandOffset, val);
@@ -25,4 +25,4 @@ Bitcast::Bitcast(InstructionResult* result, Value* val) {
2525

2626
Bitcast::~Bitcast() = default;
2727

28-
} // namespace tint::ir
28+
} // namespace tint::core::ir

src/tint/lang/core/ir/bitcast.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "src/tint/lang/core/ir/call.h"
1919
#include "src/tint/utils/rtti/castable.h"
2020

21-
namespace tint::ir {
21+
namespace tint::core::ir {
2222

2323
/// A bitcast instruction in the IR.
2424
class Bitcast : public Castable<Bitcast, Call> {
@@ -39,6 +39,6 @@ class Bitcast : public Castable<Bitcast, Call> {
3939
std::string_view FriendlyName() override { return "bitcast"; }
4040
};
4141

42-
} // namespace tint::ir
42+
} // namespace tint::core::ir
4343

4444
#endif // SRC_TINT_LANG_CORE_IR_BITCAST_H_

src/tint/lang/core/ir/bitcast_test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using namespace tint::core::number_suffixes; // NOLINT
2424
using namespace tint::core::fluent_types; // NOLINT
2525

26-
namespace tint::ir {
26+
namespace tint::core::ir {
2727
namespace {
2828

2929
using IR_BitcastTest = IRTestHelper;
@@ -71,4 +71,4 @@ TEST_F(IR_BitcastTest, Fail_NullType) {
7171
}
7272

7373
} // namespace
74-
} // namespace tint::ir
74+
} // namespace tint::core::ir

0 commit comments

Comments
 (0)