Skip to content

Commit ed205f6

Browse files
Lewuatheftynse
authored andcommitted
[mlir] Update doc to omit the usage of LLVMIntegerType
Since [[ https://reviews.llvm.org/D94178 | the LLVMIntegerType was replaced with build-in integer type ]], the usage in the tutorial should be also updated accordingly. We need to update chapter 6 for Toy tutorial specifically. See: https://reviews.llvm.org/D94178 Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D94651
1 parent 2bbf724 commit ed205f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mlir/docs/Tutorials/Toy/Ch-6.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ static FlatSymbolRefAttr getOrInsertPrintf(PatternRewriter &rewriter,
3737

3838
// Create a function declaration for printf, the signature is:
3939
// * `i32 (i8*, ...)`
40-
auto llvmI32Ty = LLVM::LLVMIntegerType::get(context, 32);
40+
auto llvmI32Ty = IntegerType::get(context, 32);
4141
auto llvmI8PtrTy =
42-
LLVM::LLVMPointerType::get(LLVM::LLVMIntegerType::get(context, 8));
42+
LLVM::LLVMPointerType::get(IntegerType::get(context, 8));
4343
auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy,
4444
/*isVarArg=*/true);
4545

0 commit comments

Comments
 (0)