llvm-project/mlir
Rainer Orth 002ec79f97 [mlir] NFC: Rename index_t to index_type
mlir currently fails to build on Solaris:

  /vol/llvm/src/llvm-project/dist/mlir/lib/Conversion/VectorToLoops/ConvertVectorToLoops.cpp:78:20: error: reference to 'index_t' is ambiguous
    IndexHandle zero(index_t(0)), one(index_t(1));
                     ^
  /usr/include/sys/types.h:103:16: note: candidate found by name lookup is 'index_t'
  typedef short           index_t;
                          ^
  /vol/llvm/src/llvm-project/dist/mlir/include/mlir/EDSC/Builders.h:27:8: note: candidate found by name lookup is 'mlir::edsc::index_t'
  struct index_t {
         ^

and many more.

Given that POSIX reserves all identifiers ending in `_t` 2.2.2 The Name Space <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html>, it seems
quite unwise to use such identifiers in user code, even more so without a distinguished
prefix.

The following patch fixes this by renaming `index_t` to `index_type`.
cases.

Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D72619
2020-01-18 22:10:46 +01:00
..
docs [mlir] NFC: Rename index_t to index_type 2020-01-18 22:10:46 +01:00
examples [MLIR] Fix broken link locations after move to monorepo 2020-01-14 07:15:02 +00:00
include [mlir] NFC: Rename index_t to index_type 2020-01-18 22:10:46 +01:00
lib [mlir] NFC: Rename index_t to index_type 2020-01-18 22:10:46 +01:00
test [mlir] NFC: Rename index_t to index_type 2020-01-18 22:10:46 +01:00
tools [mlir][spirv] Explicitly construct ArrayRef from array 2020-01-17 13:44:37 -05:00
unittests [mlir] Use getDenseElementBitwidth instead of Type::getElementTypeBitWidth. 2020-01-09 14:51:44 -08:00
utils [mlir][spirv] Support implied extensions and capabilities 2020-01-17 08:01:57 -05:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Add a clang-tidy configuration file for MLIR, it is using camelBack for naming at the moment 2019-12-26 21:42:01 +00:00
CMakeLists.txt [MLIR] Fix ML IR build on Windows with Visual Studio 2020-01-08 10:40:04 -08:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.