mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
[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:
parent
2bbf724fee
commit
ed205f63b4
@ -37,9 +37,9 @@ static FlatSymbolRefAttr getOrInsertPrintf(PatternRewriter &rewriter,
|
||||
|
||||
// Create a function declaration for printf, the signature is:
|
||||
// * `i32 (i8*, ...)`
|
||||
auto llvmI32Ty = LLVM::LLVMIntegerType::get(context, 32);
|
||||
auto llvmI32Ty = IntegerType::get(context, 32);
|
||||
auto llvmI8PtrTy =
|
||||
LLVM::LLVMPointerType::get(LLVM::LLVMIntegerType::get(context, 8));
|
||||
LLVM::LLVMPointerType::get(IntegerType::get(context, 8));
|
||||
auto llvmFnType = LLVM::LLVMFunctionType::get(llvmI32Ty, llvmI8PtrTy,
|
||||
/*isVarArg=*/true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user