From daa828ec18baf3e8a89d2cb8b63257e519eb75da Mon Sep 17 00:00:00 2001 From: Philippe Tillet Date: Sun, 24 Feb 2019 14:22:44 -0500 Subject: [PATCH] [general] rename namespace tdl -> triton --- examples/matrix.cpp | 26 +++++++++++++------------- include/triton/ast/ast.h | 2 +- include/triton/ast/parser.y | 8 ++++---- include/triton/codegen/allocation.h | 2 +- include/triton/codegen/barriers.h | 2 +- include/triton/codegen/buffer_info.h | 2 +- include/triton/codegen/layout.h | 2 +- include/triton/codegen/liveness.h | 2 +- include/triton/codegen/selection.h | 2 +- include/triton/codegen/shared_copy.h | 2 +- include/triton/codegen/tune.h | 2 +- include/triton/codegen/vectorize.h | 2 +- include/triton/driver/backend.h | 2 +- include/triton/driver/buffer.h | 2 +- include/triton/driver/context.h | 2 +- include/triton/driver/cublas.h | 2 +- include/triton/driver/device.h | 2 +- include/triton/driver/dispatch.h | 2 +- include/triton/driver/error.h | 2 +- include/triton/driver/event.h | 2 +- include/triton/driver/handle.h | 2 +- include/triton/driver/kernel.h | 2 +- include/triton/driver/module.h | 2 +- include/triton/driver/platform.h | 2 +- include/triton/driver/stream.h | 2 +- include/triton/ir/basic_block.h | 2 +- include/triton/ir/builder.h | 2 +- include/triton/ir/constant.h | 2 +- include/triton/ir/context.h | 2 +- include/triton/ir/context_impl.h | 2 +- include/triton/ir/function.h | 2 +- include/triton/ir/instructions.h | 2 +- include/triton/ir/module.h | 2 +- include/triton/ir/print.h | 2 +- include/triton/ir/type.h | 2 +- include/triton/ir/value.h | 2 +- include/triton/tools/sys/getenv.hpp | 2 +- include/triton/tools/sys/mkdir.hpp | 2 +- lib/ast/lowering.cpp | 2 +- lib/codegen/allocation.cpp | 2 +- lib/codegen/barriers.cpp | 2 +- lib/codegen/buffer_info.cpp | 2 +- lib/codegen/layout.cpp | 2 +- lib/codegen/liveness.cpp | 2 +- lib/codegen/selection.cpp | 2 +- lib/codegen/shared_copy.cpp | 2 +- lib/codegen/tune.cpp | 2 +- lib/codegen/vectorize.cpp | 2 +- lib/driver/backend.cpp | 2 +- lib/driver/buffer.cpp | 2 +- lib/driver/context.cpp | 2 +- lib/driver/device.cpp | 2 +- lib/driver/dispatch.cpp | 2 +- lib/driver/error.cpp | 2 +- lib/driver/event.cpp | 2 +- lib/driver/handle.cpp | 2 +- lib/driver/kernel.cpp | 2 +- lib/driver/module.cpp | 2 +- lib/driver/platform.cpp | 2 +- lib/driver/stream.cpp | 2 +- lib/ir/basic_block.cpp | 2 +- lib/ir/builder.cpp | 2 +- lib/ir/constant.cpp | 2 +- lib/ir/context.cpp | 2 +- lib/ir/function.cpp | 2 +- lib/ir/instructions.cpp | 2 +- lib/ir/module.cpp | 2 +- lib/ir/print.cpp | 2 +- lib/ir/type.cpp | 2 +- lib/ir/value.cpp | 2 +- 70 files changed, 85 insertions(+), 85 deletions(-) diff --git a/examples/matrix.cpp b/examples/matrix.cpp index e0fd34646..382f8a324 100644 --- a/examples/matrix.cpp +++ b/examples/matrix.cpp @@ -33,7 +33,7 @@ typedef struct yy_buffer_state * YY_BUFFER_STATE; extern int yyparse(); extern YY_BUFFER_STATE yy_scan_string(const char * str); extern void yy_delete_buffer(YY_BUFFER_STATE buffer); -using tdl::ast::translation_unit; +using triton::ast::translation_unit; extern translation_unit *ast_root; const char src[] = @@ -199,8 +199,8 @@ int main() { translation_unit *program = ast_root; // create Triton-IR from AST - tdl::ir::context context; - tdl::ir::module module("matrix", context); + triton::ir::context context; + triton::ir::module module("matrix", context); program->codegen(&module); llvm::LLVMContext llvm_context; llvm::Module llvm_module("matmul", llvm_context); @@ -208,14 +208,14 @@ int main() { // create passes - tdl::codegen::buffer_info_pass buffer_info; - tdl::codegen::place_shared_copy shared(&buffer_info); - tdl::codegen::tune tune; - tdl::codegen::liveness liveness(&buffer_info); - tdl::codegen::allocation allocation(&liveness, &buffer_info); - tdl::codegen::barriers barriers(&allocation, &buffer_info); - tdl::codegen::vectorize vectorize(&tune); - tdl::codegen::selection selection(&allocation, &tune, &buffer_info); + triton::codegen::buffer_info_pass buffer_info; + triton::codegen::place_shared_copy shared(&buffer_info); + triton::codegen::tune tune; + triton::codegen::liveness liveness(&buffer_info); + triton::codegen::allocation allocation(&liveness, &buffer_info); + triton::codegen::barriers barriers(&allocation, &buffer_info); + triton::codegen::vectorize vectorize(&tune); + triton::codegen::selection selection(&allocation, &tune, &buffer_info); // tuning parameters tune.run(module); @@ -243,7 +243,7 @@ int main() { for(unsigned *x: tune.get_params(module)) *x = params[3 + i++]; // constraints - std::map> errors; + std::map> errors; tune.check_constraints(module, errors); std::cout << "errors: " << errors.size() << std::endl; for(auto &x: errors){ @@ -255,7 +255,7 @@ int main() { // run passes - tdl::ir::print(module, std::cout); + triton::ir::print(module, std::cout); buffer_info.run(module); shared.run(module); liveness.run(module); diff --git a/include/triton/ast/ast.h b/include/triton/ast/ast.h index 32077f1a2..b2d07ddd2 100644 --- a/include/triton/ast/ast.h +++ b/include/triton/ast/ast.h @@ -8,7 +8,7 @@ #include -namespace tdl{ +namespace triton{ namespace ir{ diff --git a/include/triton/ast/parser.y b/include/triton/ast/parser.y index 3fdcbd60b..cf3c011a2 100644 --- a/include/triton/ast/parser.y +++ b/include/triton/ast/parser.y @@ -1,10 +1,10 @@ %{ -namespace tdl{ +namespace triton{ namespace ast{ class node; } } -using namespace tdl::ast; +using namespace triton::ast; #define YYSTYPE node* #include "../include/triton/ast/ast.h" @@ -129,8 +129,8 @@ primary_expression_list ; slice - : ':' { $$ = new slice(tdl::ast::ALL); } - | NEWAXIS { $$ = new slice(tdl::ast::NEWAXIS); } + : ':' { $$ = new slice(triton::ast::ALL); } + | NEWAXIS { $$ = new slice(triton::ast::NEWAXIS); } slice_list : slice { $$ = new list((slice*)$1); } diff --git a/include/triton/codegen/allocation.h b/include/triton/codegen/allocation.h index ad58ccea7..1f2a7656c 100644 --- a/include/triton/codegen/allocation.h +++ b/include/triton/codegen/allocation.h @@ -5,7 +5,7 @@ #include #include -namespace tdl{ +namespace triton{ namespace ir{ class value; diff --git a/include/triton/codegen/barriers.h b/include/triton/codegen/barriers.h index 5199f94ad..546b36893 100644 --- a/include/triton/codegen/barriers.h +++ b/include/triton/codegen/barriers.h @@ -5,7 +5,7 @@ #include #include -namespace tdl { +namespace triton { namespace ir { class module; diff --git a/include/triton/codegen/buffer_info.h b/include/triton/codegen/buffer_info.h index 0d22608c2..c9b954a58 100644 --- a/include/triton/codegen/buffer_info.h +++ b/include/triton/codegen/buffer_info.h @@ -4,7 +4,7 @@ #include #include -namespace tdl { +namespace triton { namespace ir { class module; diff --git a/include/triton/codegen/layout.h b/include/triton/codegen/layout.h index d63a5dbe2..a18f6439f 100644 --- a/include/triton/codegen/layout.h +++ b/include/triton/codegen/layout.h @@ -4,7 +4,7 @@ #include #include -namespace tdl { +namespace triton { namespace ir { class module; diff --git a/include/triton/codegen/liveness.h b/include/triton/codegen/liveness.h index fd4faf2f3..010bb4e2a 100644 --- a/include/triton/codegen/liveness.h +++ b/include/triton/codegen/liveness.h @@ -3,7 +3,7 @@ #include -namespace tdl{ +namespace triton{ namespace ir{ class value; diff --git a/include/triton/codegen/selection.h b/include/triton/codegen/selection.h index 3f515ee4d..13bc3b6b6 100644 --- a/include/triton/codegen/selection.h +++ b/include/triton/codegen/selection.h @@ -18,7 +18,7 @@ namespace llvm{ class LLVMContext; } -namespace tdl{ +namespace triton{ namespace codegen{ class allocation; diff --git a/include/triton/codegen/shared_copy.h b/include/triton/codegen/shared_copy.h index be043b18c..3a3d7363b 100644 --- a/include/triton/codegen/shared_copy.h +++ b/include/triton/codegen/shared_copy.h @@ -4,7 +4,7 @@ #include #include -namespace tdl { +namespace triton { namespace ir { class module; diff --git a/include/triton/codegen/tune.h b/include/triton/codegen/tune.h index dfa1fcc97..cb1d5b509 100644 --- a/include/triton/codegen/tune.h +++ b/include/triton/codegen/tune.h @@ -5,7 +5,7 @@ #include #include -namespace tdl{ +namespace triton{ namespace ir{ class value; diff --git a/include/triton/codegen/vectorize.h b/include/triton/codegen/vectorize.h index c9c28a79c..fe6df9dcf 100644 --- a/include/triton/codegen/vectorize.h +++ b/include/triton/codegen/vectorize.h @@ -1,7 +1,7 @@ #ifndef TDL_INCLUDE_CODEGEN_VECTORIZE_H #define TDL_INCLUDE_CODEGEN_VECTORIZE_H -namespace tdl { +namespace triton { namespace ir { class module; diff --git a/include/triton/driver/backend.h b/include/triton/driver/backend.h index f71e2b424..0af719c29 100755 --- a/include/triton/driver/backend.h +++ b/include/triton/driver/backend.h @@ -28,7 +28,7 @@ #include -namespace tdl +namespace triton { namespace driver { diff --git a/include/triton/driver/buffer.h b/include/triton/driver/buffer.h index 1d4130cd0..21603f9c4 100755 --- a/include/triton/driver/buffer.h +++ b/include/triton/driver/buffer.h @@ -26,7 +26,7 @@ #include "triton/driver/handle.h" #include "triton/driver/context.h" -namespace tdl +namespace triton { namespace driver { diff --git a/include/triton/driver/context.h b/include/triton/driver/context.h index 339a25c72..f1c6bca7a 100755 --- a/include/triton/driver/context.h +++ b/include/triton/driver/context.h @@ -26,7 +26,7 @@ #include "triton/driver/device.h" #include "triton/driver/handle.h" -namespace tdl +namespace triton { namespace driver { diff --git a/include/triton/driver/cublas.h b/include/triton/driver/cublas.h index 175b7f089..857709106 100755 --- a/include/triton/driver/cublas.h +++ b/include/triton/driver/cublas.h @@ -32,7 +32,7 @@ #include "triton/tools/bench.hpp" #include "triton/tools/collections.hpp" -namespace tdl +namespace triton { namespace driver { diff --git a/include/triton/driver/device.h b/include/triton/driver/device.h index 3be7ca04f..2263cffc6 100755 --- a/include/triton/driver/device.h +++ b/include/triton/driver/device.h @@ -26,7 +26,7 @@ #include "triton/driver/platform.h" #include "triton/driver/handle.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/dispatch.h b/include/triton/driver/dispatch.h index 42ce6729f..aa1d412de 100755 --- a/include/triton/driver/dispatch.h +++ b/include/triton/driver/dispatch.h @@ -37,7 +37,7 @@ #include #include -namespace tdl +namespace triton { namespace driver { diff --git a/include/triton/driver/error.h b/include/triton/driver/error.h index b837dea92..dd695e8c8 100755 --- a/include/triton/driver/error.h +++ b/include/triton/driver/error.h @@ -27,7 +27,7 @@ #include "triton/driver/dispatch.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/event.h b/include/triton/driver/event.h index 79fbbb56f..65f29beaf 100755 --- a/include/triton/driver/event.h +++ b/include/triton/driver/event.h @@ -25,7 +25,7 @@ #include "triton/driver/handle.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/handle.h b/include/triton/driver/handle.h index cb8463584..19cdf62f8 100755 --- a/include/triton/driver/handle.h +++ b/include/triton/driver/handle.h @@ -29,7 +29,7 @@ #include #include "triton/driver/dispatch.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/kernel.h b/include/triton/driver/kernel.h index 1fbf7935a..b29d7b1a4 100755 --- a/include/triton/driver/kernel.h +++ b/include/triton/driver/kernel.h @@ -28,7 +28,7 @@ #include -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/module.h b/include/triton/driver/module.h index 913e90853..3a964df38 100755 --- a/include/triton/driver/module.h +++ b/include/triton/driver/module.h @@ -28,7 +28,7 @@ #include "triton/driver/context.h" #include "triton/driver/buffer.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/platform.h b/include/triton/driver/platform.h index d39c48e72..514e07625 100755 --- a/include/triton/driver/platform.h +++ b/include/triton/driver/platform.h @@ -28,7 +28,7 @@ #include "triton/driver/handle.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/driver/stream.h b/include/triton/driver/stream.h index 8e5783892..a94a33c54 100755 --- a/include/triton/driver/stream.h +++ b/include/triton/driver/stream.h @@ -29,7 +29,7 @@ #include "triton/driver/handle.h" #include "triton/driver/buffer.h" -namespace tdl +namespace triton { namespace driver diff --git a/include/triton/ir/basic_block.h b/include/triton/ir/basic_block.h index a01cff008..63de2a18b 100644 --- a/include/triton/ir/basic_block.h +++ b/include/triton/ir/basic_block.h @@ -5,7 +5,7 @@ #include #include "value.h" -namespace tdl{ +namespace triton{ namespace ir{ class context; diff --git a/include/triton/ir/builder.h b/include/triton/ir/builder.h index a6c0013fd..577daad4e 100644 --- a/include/triton/ir/builder.h +++ b/include/triton/ir/builder.h @@ -8,7 +8,7 @@ #include "basic_block.h" #include "type.h" -namespace tdl{ +namespace triton{ namespace ir{ class basic_block; diff --git a/include/triton/ir/constant.h b/include/triton/ir/constant.h index 132902d3a..11403c6dd 100644 --- a/include/triton/ir/constant.h +++ b/include/triton/ir/constant.h @@ -4,7 +4,7 @@ #include "value.h" #include -namespace tdl{ +namespace triton{ namespace ir{ class type; diff --git a/include/triton/ir/context.h b/include/triton/ir/context.h index d3018aa6f..1433d741d 100644 --- a/include/triton/ir/context.h +++ b/include/triton/ir/context.h @@ -4,7 +4,7 @@ #include #include "triton/ir/type.h" -namespace tdl{ +namespace triton{ namespace ir{ class type; diff --git a/include/triton/ir/context_impl.h b/include/triton/ir/context_impl.h index 623f58e40..54e109862 100644 --- a/include/triton/ir/context_impl.h +++ b/include/triton/ir/context_impl.h @@ -5,7 +5,7 @@ #include #include "triton/ir/type.h" -namespace tdl{ +namespace triton{ namespace ir{ class context; diff --git a/include/triton/ir/function.h b/include/triton/ir/function.h index 4f0762067..9b44d7b1a 100644 --- a/include/triton/ir/function.h +++ b/include/triton/ir/function.h @@ -5,7 +5,7 @@ #include "value.h" #include "constant.h" -namespace tdl{ +namespace triton{ namespace ir{ class function; diff --git a/include/triton/ir/instructions.h b/include/triton/ir/instructions.h index 93dc0b78e..54f313f88 100644 --- a/include/triton/ir/instructions.h +++ b/include/triton/ir/instructions.h @@ -6,7 +6,7 @@ #include "triton/ir/type.h" #include "llvm/IR/Instructions.h" -namespace tdl{ +namespace triton{ namespace ir{ class basic_block; diff --git a/include/triton/ir/module.h b/include/triton/ir/module.h index 41a729999..59c5d0a0a 100644 --- a/include/triton/ir/module.h +++ b/include/triton/ir/module.h @@ -8,7 +8,7 @@ #include #include "builder.h" -namespace tdl{ +namespace triton{ namespace ast{ diff --git a/include/triton/ir/print.h b/include/triton/ir/print.h index a31929282..c5a034ea3 100644 --- a/include/triton/ir/print.h +++ b/include/triton/ir/print.h @@ -4,7 +4,7 @@ #include "builder.h" -namespace tdl{ +namespace triton{ namespace ir{ class module; diff --git a/include/triton/ir/type.h b/include/triton/ir/type.h index 1cd74e259..1977ff47c 100644 --- a/include/triton/ir/type.h +++ b/include/triton/ir/type.h @@ -5,7 +5,7 @@ #include #include -namespace tdl{ +namespace triton{ namespace ir{ class context; diff --git a/include/triton/ir/value.h b/include/triton/ir/value.h index 4db869f52..08b26d715 100644 --- a/include/triton/ir/value.h +++ b/include/triton/ir/value.h @@ -6,7 +6,7 @@ #include #include -namespace tdl{ +namespace triton{ namespace ir{ class type; diff --git a/include/triton/tools/sys/getenv.hpp b/include/triton/tools/sys/getenv.hpp index e10664b6f..6e45ad5f2 100755 --- a/include/triton/tools/sys/getenv.hpp +++ b/include/triton/tools/sys/getenv.hpp @@ -25,7 +25,7 @@ #include #include -namespace tdl +namespace triton { namespace tools diff --git a/include/triton/tools/sys/mkdir.hpp b/include/triton/tools/sys/mkdir.hpp index 5d82a7535..e6c289535 100755 --- a/include/triton/tools/sys/mkdir.hpp +++ b/include/triton/tools/sys/mkdir.hpp @@ -31,7 +31,7 @@ #include #endif -namespace tdl +namespace triton { namespace tools diff --git a/lib/ast/lowering.cpp b/lib/ast/lowering.cpp index 4d1fa5048..bff7e2ed6 100644 --- a/lib/ast/lowering.cpp +++ b/lib/ast/lowering.cpp @@ -10,7 +10,7 @@ #include -namespace tdl{ +namespace triton{ namespace ast{ diff --git a/lib/codegen/allocation.cpp b/lib/codegen/allocation.cpp index d396ec790..c4dd538f8 100644 --- a/lib/codegen/allocation.cpp +++ b/lib/codegen/allocation.cpp @@ -8,7 +8,7 @@ #include "triton/ir/function.h" #include "triton/ir/instructions.h" -namespace tdl{ +namespace triton{ namespace codegen{ unsigned allocation::get_num_bytes(ir::value *x) { diff --git a/lib/codegen/barriers.cpp b/lib/codegen/barriers.cpp index c40c08186..b84a945d8 100644 --- a/lib/codegen/barriers.cpp +++ b/lib/codegen/barriers.cpp @@ -7,7 +7,7 @@ #include "triton/ir/basic_block.h" #include "triton/ir/instructions.h" -namespace tdl { +namespace triton { namespace codegen{ diff --git a/lib/codegen/buffer_info.cpp b/lib/codegen/buffer_info.cpp index c8fe08df6..92e27fd23 100644 --- a/lib/codegen/buffer_info.cpp +++ b/lib/codegen/buffer_info.cpp @@ -5,7 +5,7 @@ #include "triton/ir/instructions.h" #include "triton/ir/type.h" -namespace tdl { +namespace triton { namespace codegen{ diff --git a/lib/codegen/layout.cpp b/lib/codegen/layout.cpp index 040954caa..0722321b8 100644 --- a/lib/codegen/layout.cpp +++ b/lib/codegen/layout.cpp @@ -4,7 +4,7 @@ #include "triton/ir/basic_block.h" #include "triton/ir/instructions.h" -namespace tdl{ +namespace triton{ namespace codegen{ diff --git a/lib/codegen/liveness.cpp b/lib/codegen/liveness.cpp index f5e5a79c6..5e1987b9e 100644 --- a/lib/codegen/liveness.cpp +++ b/lib/codegen/liveness.cpp @@ -6,7 +6,7 @@ #include "triton/ir/instructions.h" #include "triton/ir/value.h" -namespace tdl{ +namespace triton{ namespace codegen{ diff --git a/lib/codegen/selection.cpp b/lib/codegen/selection.cpp index 4cb2cf827..1b09ca4f9 100644 --- a/lib/codegen/selection.cpp +++ b/lib/codegen/selection.cpp @@ -13,7 +13,7 @@ #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/IR/BasicBlock.h" -namespace tdl{ +namespace triton{ namespace codegen{ using namespace llvm; diff --git a/lib/codegen/shared_copy.cpp b/lib/codegen/shared_copy.cpp index b7276bbfe..ce6f53fbe 100644 --- a/lib/codegen/shared_copy.cpp +++ b/lib/codegen/shared_copy.cpp @@ -6,7 +6,7 @@ #include "triton/ir/basic_block.h" #include "triton/ir/instructions.h" -namespace tdl { +namespace triton { namespace codegen{ diff --git a/lib/codegen/tune.cpp b/lib/codegen/tune.cpp index 302676697..846cd985e 100644 --- a/lib/codegen/tune.cpp +++ b/lib/codegen/tune.cpp @@ -8,7 +8,7 @@ #include -namespace tdl{ +namespace triton{ namespace codegen{ void tune::add_constraint(node_t x, node_t y) { diff --git a/lib/codegen/vectorize.cpp b/lib/codegen/vectorize.cpp index 4c45928a2..c9757c6aa 100644 --- a/lib/codegen/vectorize.cpp +++ b/lib/codegen/vectorize.cpp @@ -5,7 +5,7 @@ #include "triton/ir/basic_block.h" #include "triton/ir/instructions.h" -namespace tdl { +namespace triton { namespace codegen{ diff --git a/lib/driver/backend.cpp b/lib/driver/backend.cpp index cdf72027d..88e8630e9 100755 --- a/lib/driver/backend.cpp +++ b/lib/driver/backend.cpp @@ -31,7 +31,7 @@ #include #include -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/buffer.cpp b/lib/driver/buffer.cpp index 069e8abe1..1ac650397 100755 --- a/lib/driver/buffer.cpp +++ b/lib/driver/buffer.cpp @@ -27,7 +27,7 @@ #include "triton/driver/dispatch.h" -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/context.cpp b/lib/driver/context.cpp index 8e365db81..ddaed2b91 100755 --- a/lib/driver/context.cpp +++ b/lib/driver/context.cpp @@ -29,7 +29,7 @@ #include "triton/tools/sys/getenv.hpp" #include "triton/tools/sys/mkdir.hpp" -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/device.cpp b/lib/driver/device.cpp index 22f640d7b..44f9e29bd 100755 --- a/lib/driver/device.cpp +++ b/lib/driver/device.cpp @@ -28,7 +28,7 @@ #include "triton/driver/device.h" -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/dispatch.cpp b/lib/driver/dispatch.cpp index d7d19727d..9e7a01330 100755 --- a/lib/driver/dispatch.cpp +++ b/lib/driver/dispatch.cpp @@ -24,7 +24,7 @@ #include "triton/driver/dispatch.h" #include "triton/driver/context.h" -namespace tdl +namespace triton { namespace driver { diff --git a/lib/driver/error.cpp b/lib/driver/error.cpp index 9759a1323..f3cce16d5 100755 --- a/lib/driver/error.cpp +++ b/lib/driver/error.cpp @@ -22,7 +22,7 @@ #include "triton/driver/error.h" -namespace tdl +namespace triton { namespace driver { diff --git a/lib/driver/event.cpp b/lib/driver/event.cpp index b8841dc0f..60397882b 100755 --- a/lib/driver/event.cpp +++ b/lib/driver/event.cpp @@ -22,7 +22,7 @@ #include "triton/driver/event.h" -namespace tdl +namespace triton { namespace driver { diff --git a/lib/driver/handle.cpp b/lib/driver/handle.cpp index cd7ee4195..090568919 100755 --- a/lib/driver/handle.cpp +++ b/lib/driver/handle.cpp @@ -24,7 +24,7 @@ #include #include "triton/driver/handle.h" -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/kernel.cpp b/lib/driver/kernel.cpp index 180e46cc7..6cd6dd2e7 100755 --- a/lib/driver/kernel.cpp +++ b/lib/driver/kernel.cpp @@ -26,7 +26,7 @@ #include "triton/driver/kernel.h" #include "triton/driver/buffer.h" -namespace tdl +namespace triton { namespace driver diff --git a/lib/driver/module.cpp b/lib/driver/module.cpp index d897489fe..2748742a7 100755 --- a/lib/driver/module.cpp +++ b/lib/driver/module.cpp @@ -29,7 +29,7 @@ #include "triton/tools/sys/getenv.hpp" -namespace tdl +namespace triton { namespace driver { diff --git a/lib/driver/platform.cpp b/lib/driver/platform.cpp index ada13de41..0fe23ccac 100755 --- a/lib/driver/platform.cpp +++ b/lib/driver/platform.cpp @@ -26,7 +26,7 @@ #include -namespace tdl +namespace triton { namespace driver { diff --git a/lib/driver/stream.cpp b/lib/driver/stream.cpp index 39996d473..d82b0437c 100755 --- a/lib/driver/stream.cpp +++ b/lib/driver/stream.cpp @@ -32,7 +32,7 @@ #include "triton/driver/kernel.h" #include "triton/driver/buffer.h" -namespace tdl +namespace triton { namespace driver diff --git a/lib/ir/basic_block.cpp b/lib/ir/basic_block.cpp index 15fa3188c..456f0f820 100644 --- a/lib/ir/basic_block.cpp +++ b/lib/ir/basic_block.cpp @@ -3,7 +3,7 @@ #include "triton/ir/type.h" #include "triton/ir/function.h" -namespace tdl { +namespace triton { namespace ir { class phi_node; diff --git a/lib/ir/builder.cpp b/lib/ir/builder.cpp index 467a7ef71..5d798acc8 100644 --- a/lib/ir/builder.cpp +++ b/lib/ir/builder.cpp @@ -6,7 +6,7 @@ #include "triton/ir/type.h" #include "llvm/IR/Instruction.h" -namespace tdl{ +namespace triton{ namespace ir{ builder::builder(context &ctx): diff --git a/lib/ir/constant.cpp b/lib/ir/constant.cpp index 5a6cfbc7a..929af2228 100644 --- a/lib/ir/constant.cpp +++ b/lib/ir/constant.cpp @@ -4,7 +4,7 @@ #include "triton/ir/context.h" #include "triton/ir/context_impl.h" -namespace tdl{ +namespace triton{ namespace ir{ diff --git a/lib/ir/context.cpp b/lib/ir/context.cpp index 33a852bda..e0a6976e0 100644 --- a/lib/ir/context.cpp +++ b/lib/ir/context.cpp @@ -2,7 +2,7 @@ #include "triton/ir/context.h" #include "triton/ir/type.h" -namespace tdl{ +namespace triton{ namespace ir{ //===----------------------------------------------------------------------===// diff --git a/lib/ir/function.cpp b/lib/ir/function.cpp index 75a465e8f..758fd8bc3 100644 --- a/lib/ir/function.cpp +++ b/lib/ir/function.cpp @@ -2,7 +2,7 @@ #include "triton/ir/type.h" #include "triton/ir/module.h" -namespace tdl{ +namespace triton{ namespace ir{ diff --git a/lib/ir/instructions.cpp b/lib/ir/instructions.cpp index 93ba4602a..984ab9b4a 100644 --- a/lib/ir/instructions.cpp +++ b/lib/ir/instructions.cpp @@ -4,7 +4,7 @@ #include "triton/ir/constant.h" #include "triton/ir/type.h" -namespace tdl{ +namespace triton{ namespace ir{ //===----------------------------------------------------------------------===// diff --git a/lib/ir/module.cpp b/lib/ir/module.cpp index 28825fe4b..6e7ecd464 100644 --- a/lib/ir/module.cpp +++ b/lib/ir/module.cpp @@ -4,7 +4,7 @@ #include "triton/ir/constant.h" #include "triton/ir/function.h" -namespace tdl{ +namespace triton{ namespace ir{ /* Module */ diff --git a/lib/ir/print.cpp b/lib/ir/print.cpp index 34829aec0..d1313bbcb 100644 --- a/lib/ir/print.cpp +++ b/lib/ir/print.cpp @@ -6,7 +6,7 @@ #include "triton/ir/instructions.h" #include "triton/ir/print.h" -namespace tdl{ +namespace triton{ namespace ir{ std::string get_name(ir::value *v, unsigned i) { diff --git a/lib/ir/type.cpp b/lib/ir/type.cpp index 10a8d582e..862039220 100644 --- a/lib/ir/type.cpp +++ b/lib/ir/type.cpp @@ -5,7 +5,7 @@ #include "triton/ir/value.h" #include "triton/ir/constant.h" -namespace tdl{ +namespace triton{ namespace ir{ //===----------------------------------------------------------------------===// diff --git a/lib/ir/value.cpp b/lib/ir/value.cpp index 3827af220..b404e5eea 100644 --- a/lib/ir/value.cpp +++ b/lib/ir/value.cpp @@ -3,7 +3,7 @@ #include #include -namespace tdl{ +namespace triton{ namespace ir{ class type;