Skip to content

Commit

Permalink
llvm::SmallVector --> ArrayRef
Browse files Browse the repository at this point in the history
  • Loading branch information
jumerckx committed Dec 22, 2024
1 parent 8a3f3c7 commit aa4e598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enzyme/Enzyme/MLIR/Dialect/EnzymeOps.td
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def BroadcastOp : Enzyme_Op<"broadcast"> {
let results = (outs AnyRankedTensor:$output);

let builders = [
OpBuilder<(ins "Value":$input, "llvm::SmallVector<int64_t>":$shape)>
OpBuilder<(ins "Value":$input, "ArrayRef<int64_t>":$shape)>
];
}

Expand Down
2 changes: 1 addition & 1 deletion enzyme/Enzyme/MLIR/Dialect/Ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ LogicalResult BatchOp::verifySymbolUses(SymbolTableCollection &symbolTable) {
// BroadcastOp
//===----------------------------------------------------------------------===//

void BroadcastOp::build(OpBuilder &builder, OperationState &result, Value input, llvm::SmallVector<int64_t> shape) {
void BroadcastOp::build(OpBuilder &builder, OperationState &result, Value input, ArrayRef<int64_t> shape) {
auto shapeAttr = builder.getDenseI64ArrayAttr(shape);
RankedTensorType output;
// TODO: support things other than scalars and ranked tensors, maybe reuse getShadowType here?
Expand Down

0 comments on commit aa4e598

Please sign in to comment.