Philippe Tillet
e61dc75942
[FRONTEND] Fixed inliner and got more tests to pass ( #822 )
...
This adds a `DialectInlinerInterface` to the Triton dialect. This, along
with a few other minor semantic changes, fixes our tests on call
instructions. Also added the option to provide use an "LLVM_SYSPATH"
environment variable to link against locally build of LLVM; this was
useful for debugging this issue.
2022-10-30 14:10:02 -07:00
Philippe Tillet
ac0f6793cc
[BACKEND] Added support for scalars in LoadOp / StoreOp / ElementwiseOp ( #814 )
...
Also fixed various errors that showed up in `test_core.py`, and added more TODOs for open (hopefully relatively minor) issues
2022-10-28 16:17:55 +08:00
Philippe Tillet
3e6cc6d66c
[FRONTEND] Made more tests pass ( #805 )
2022-10-26 17:47:33 -07:00
Philippe Tillet
bb0f9235d1
[OPTIMIZER] Made layout simplification pass efficient for fused attention kernels ( #790 )
2022-10-21 16:52:15 -07:00
Shintaro Iwasaki
0d22d2bc03
[TritonMLIR] Disallow 0D tensor ( #788 )
2022-10-19 10:34:32 -07:00
Shintaro Iwasaki
5898352f97
[Triton-IR] Fix LoadOp definition ( #771 ) ( #777 )
2022-10-13 18:53:00 -07:00
Philippe Tillet
623c99609f
[Triton-IR] Added type inference and verifier for Triton-IR operations ( #767 )
2022-10-11 18:16:41 -07:00
Shintaro Iwasaki
940ef3f0ac
[BACKEND] llvm::dyn_cast -> llvm::dyn_cast_or_null ( #689 )
2022-09-22 03:26:40 +00:00
Shintaro Iwasaki
43be75ad42
[FRONTEND] Add scalar type support for some ops ( #661 )
...
This PR adds basic support for scalar-type inputs to some ops (cast and pointer arithmetics) for Triton-MLIR. Also renames getelementptr -> addptr
2022-09-15 16:12:52 -07:00
Shintaro Iwasaki
84aa7d025a
[TritonIR] simplify Load/StoreOps when mask is true/false ( #79 )
...
* [TritonIR] fix Load/Store/CopyAsyncOp's parsers
* [TritonIR] simplify Load/StoreOps when mask is true/false
* [TEST] adds tests to check load/store simplification
2022-08-24 12:55:49 -07:00
Shintaro Iwasaki
0ebef11c77
[TritonIR] Make mask operand optional ( #74 )
2022-08-22 22:00:17 -07:00
Shintaro Iwasaki
9aa00249a6
[TritonIR] make other optional and remove isOtherUnspecified ( #67 )
...
[Triton] make other optional and remove isOtherUnspecified
2022-08-18 18:19:55 -07:00
Shintaro Iwasaki
d69ce77b19
[FRONTEND] add an attr for masked load without explicit other ( #55 )
2022-08-18 09:51:37 -07:00
Yan Chunwei
95bbac41e7
[BACKEND] Add LLVM-translation for store and splat ops ( #47 )
2022-08-15 00:46:37 -07:00
Shintaro Iwasaki
2ba9a83465
[BUILD] fix minor issues with MLIR assert enabled ( #46 )
2022-08-11 21:20:47 -07:00
Yan Chunwei
e02c82c765
[TritonIR] Convert Triton dialect's Combine
pass to MLIR DRR based ( #16 )
2022-07-27 12:50:08 -07:00
Philippe Tillet
6d62d88d4f
[CI] run clang-format ( #24 )
2022-07-26 17:25:03 -07:00
Philippe Tillet
a633d2b403
[Analysis] Added Axis Info Analysis ( #8 )
2022-07-19 13:38:48 -07:00
Yan Da
9feb256b71
op combine in Triton Dialect: broadcast(cst) -> cst
2022-06-17 16:19:47 +08:00
Yan Da
a4a2c72173
default address space of PointerType 0 => 1
2022-06-05 15:09:41 +08:00
Yan Da
b9279d2e3b
More progress on TritonGPU conversion
2022-05-04 14:54:31 +08:00
Yan Da
edca91bf8f
Update traits (NoSideEffect)
2022-04-27 19:41:07 +08:00
Yan Da
8dfe78f6cf
Add TritonCombineOps
2022-04-27 19:28:21 +08:00
Yan Da
c70f6b666e
Merge previous changes
2022-04-27 14:06:55 +08:00
Philippe Tillet
81001d318c
Putting Triton dialect in its own folder
2022-04-26 14:39:27 -07:00