[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
This commit is contained in:
lewuathe 2021-01-14 09:28:08 +01:00 committed by Alex Zinenko
parent 2bbf724fee
commit ed205f63b4

View File

@ -37,9 +37,9 @@ static FlatSymbolRefAttr getOrInsertPrintf(PatternRewriter &rewriter,
// Create a function declaration for printf, the signature is: // Create a function declaration for printf, the signature is:
// * `i32 (i8*, ...)` // * `i32 (i8*, ...)`
auto llvmI32Ty = LLVM::LLVMIntegerType::get(context, 32); auto llvmI32Ty = IntegerType::get(context, 32);
auto llvmI8PtrTy = auto llvmI8PtrTy =
LLVM::LLVMPointerType::get(LLVM::LLVMIntegerType::get(context, 8)); LLVM::LLVMPointerType::get(IntegerType::get(context, 8));
auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy, auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy,
/*isVarArg=*/true); /*isVarArg=*/true);