mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-01 18:12:44 +00:00
Add NoSideEffect trait to shape.split_at and shape.concat
Reviewed By: jpienaar, silvas Differential Revision: https://reviews.llvm.org/D96358
This commit is contained in:
parent
e090182fe1
commit
4bd68f238c
@ -526,7 +526,7 @@ def Shape_DebugPrintOp : Shape_Op<"debug_print", []> {
|
||||
let results = (outs Shape_ShapeOrSizeType:$output);
|
||||
}
|
||||
|
||||
def Shape_SplitAtOp : Shape_Op<"split_at", []> {
|
||||
def Shape_SplitAtOp : Shape_Op<"split_at", [NoSideEffect]> {
|
||||
let summary = "Splits a shape at a given index";
|
||||
let description = [{
|
||||
Splits a shape at a given dimension `index`, returning two shapes.
|
||||
@ -555,7 +555,7 @@ def Shape_SplitAtOp : Shape_Op<"split_at", []> {
|
||||
let hasFolder = 1;
|
||||
}
|
||||
|
||||
def Shape_ConcatOp : Shape_Op<"concat", []> {
|
||||
def Shape_ConcatOp : Shape_Op<"concat", [NoSideEffect]> {
|
||||
let summary = "Concatenates two shapes";
|
||||
let description = [{
|
||||
Creates a shape whose dimensions consist of first the dimensions from `lhs`
|
||||
|
Loading…
Reference in New Issue
Block a user