summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRenato Golin <rengolin@systemcall.eu>2023-07-07 12:04:30 +0100
committerRenato Golin <rengolin@systemcall.eu>2023-07-07 13:39:12 +0100
commitd8dc1c22bf926cb8c87d7ff72bae6aafe076bbc2 (patch)
tree154c4e14920c33be8ec080b62cbd400400145064 /clang/lib/CodeGen/CodeGenModule.cpp
parent9d5cfed2443aa294e67bea694d5aab02c40fa278 (diff)
[MLIR][Linalg] Add max named op to linalg
I've been trying to come up with a simple and clean implementation for ReLU. TOSA uses `clamp` which is probably the goal, but that means table-gen to make it efficient (attributes, only lower `min` or `max`). For now, `max` is a reasonable named op despite ReLU, so we can start using it for tiling and fusion, and upon success, we create a more complete op `clamp` that doesn't need a whole tensor filled with zeroes or ones to implement the different activation functions. As with other named ops, we start "requiring" type casts and broadcasts, and zero filled constant tensors to a more complex pattern-matcher, and can slowly simplify with attributes or structured matchers (ex. PDL) in the future. Differential Revision: https://reviews.llvm.org/D154703
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions