llvm-project/mlir
Rainer Orth 07aaa35f74 [mlir][test] Fix IR/AttributeTest.cpp compilation on Solaris
The `IR/AttributeTest.cpp` test fails to compile on Solaris:

  /vol/llvm/src/llvm-project/local/mlir/unittests/IR/AttributeTest.cpp:223:36: error: no matching function for call to 'allocate'
        AttrT::get(type, "resource", UnmanagedAsmResourceBlob::allocate(data));
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /vol/llvm/src/llvm-project/local/mlir/unittests/IR/AttributeTest.cpp:237:3: note: in instantiation of function template specialization 'checkNativeAccess<mlir::detail::DenseResourceElementsAttrBase<int8_t>, char>' requested here
    checkNativeAccess<AttrT, T>(builder.getContext(), llvm::makeArrayRef(data),
    ^
  /vol/llvm/src/llvm-project/local/mlir/unittests/IR/AttributeTest.cpp:258:3: note: in instantiation of function template specialization 'checkNativeIntAccess<mlir::detail::DenseResourceElementsAttrBase<int8_t>, char>' requested here
    checkNativeIntAccess<DenseI8ResourceElementsAttr, int8_t>(builder, 8);
    ^
  /vol/llvm/src/llvm-project/local/mlir/include/mlir/IR/AsmState.h:221:3: note: candidate template ignored: requirement '!std::is_same<char, char>::value' was not satisfied [with T = char]
    allocate(ArrayRef<T> data, bool dataIsMutable = false) {
    ^
  /vol/llvm/src/llvm-project/local/mlir/include/mlir/IR/AsmState.h:214:26: note: candidate function not viable: requires at least 2 arguments, but 1 was provided
    static AsmResourceBlob allocate(ArrayRef<char> data, size_t align,
                           ^

I suspect this happens because `char` is `signed` by default on Solaris.

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

Differential Revision: https://reviews.llvm.org/D131148
2022-08-04 18:56:05 +02:00
..
benchmark/python [NFC] Remove obsolete all_passes_registration from integration tests. 2022-07-16 18:18:43 -07:00
cmake/modules [CMake] Fix add_subdirectory llvm builds 2022-07-26 11:24:23 +02:00
docs [mlir] Only conditionally lower CF branching ops to LLVM 2022-08-04 16:36:27 +02:00
examples Replace Optional::hasValue with has_value or operator bool. NFC 2022-07-29 10:57:25 -07:00
include [MLIR] Make the implementations for getMixedOffsets/Sizes/Strides independent of OffsetSizeAndStrideOpInterface 2022-08-04 11:58:15 -04:00
lib [mlir][sparse] replace zero yield generic op with copy in allocation 2022-08-04 09:33:57 -07:00
python [MLIR] Fix checks for native arch 2022-08-04 11:10:08 +02:00
test [mlir][sparse] replace zero yield generic op with copy in allocation 2022-08-04 09:33:57 -07:00
tools [MLIR] Fix checks for native arch 2022-08-04 11:10:08 +02:00
unittests [mlir][test] Fix IR/AttributeTest.cpp compilation on Solaris 2022-08-04 18:56:05 +02:00
utils [mlir] Remove OpaqueElementsAttr 2022-08-01 15:00:54 -07:00
.clang-format [mlir] Add missing newline at end of .clang-format file 2022-06-14 23:59:00 -07:00
.clang-tidy [mlir] Disable `misc-const-correctness` clang-tidy check. 2022-08-03 10:18:43 +02:00
CMakeLists.txt [MLIR] Fix checks for native arch 2022-08-04 11:10:08 +02:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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