[all-commits] [llvm/llvm-project] 8b6bea: Use bool in place of int for boolean things in the...
George Lyon via All-commits
all-commits at lists.llvm.org
Sun Nov 29 16:42:32 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8b6bea9bff80a80d3cdbceb6d2218e6bac819696
https://github.com/llvm/llvm-project/commit/8b6bea9bff80a80d3cdbceb6d2218e6bac819696
Author: George <989903+GeorgeLyon at users.noreply.github.com>
Date: 2020-11-29 (Sun, 29 Nov 2020)
Changed paths:
M mlir/include/mlir-c/IR.h
M mlir/lib/CAPI/IR/IR.cpp
Log Message:
-----------
Use bool in place of int for boolean things in the C API
`bool` is pretty well supported by now in C, and using it in place of `int` is not only more semantically accurate, but also improves automatic bindings for languages like Swift.
There is more discussion here: https://llvm.discourse.group/t/adding-mlirbool-to-c-bindings/2280/5
Reviewed By: ftynse, mehdi_amini
Differential Revision: https://reviews.llvm.org/D92193
More information about the All-commits
mailing list