1. Feb 14, 2023
    • Haojian Wu's avatar
      [include-cleaner] Better support ambiguous std symbols · 504aa8ae
      Haojian Wu authored
      By special-casing them at the moment. The tooling stdlib lib doesn't
      support these symbols (most important one is std::move).
      
      Differential Revision: https://reviews.llvm.org/D143906
      504aa8ae
    • Chuanqi Xu's avatar
      [Modules] Don't re-generate template specialization in the importer · 1ba93c3c
      Chuanqi Xu authored
      Close https://github.com/llvm/llvm-project/issues/60693.
      
      In this issue, we can find that the importer will try to generate the
      template specialization again in the importer, which is not good and
      wastes time. This patch tries to address the problem.
      1ba93c3c
    • Kadir Cetinkaya's avatar
    • Ben Shi's avatar
      [AVR] Fix inaccurate offsets in PC relative branch instructions · 697a162f
      Ben Shi authored
      In avr-gcc, the destination of "rjmp label + offset" is address
      'label + offset', while destination of "rjmp . + offset" is
      'address_of_rjmp + offset + 2'.
      
      Clang is in accordance with avr-gcc for "rjmp label + offset", but
      emits incorrect destination of "rjmp . + offset" to
      'address_of_rjmp + offset', in which the expected offset 2 is missing.
      
      This patch fixes the above issue.
      
      Fixes https://github.com/llvm/llvm-project/issues/60019
      
      Reviewed By: jacquesguan, aykevl
      
      Differential Revision: https://reviews.llvm.org/D143901
      697a162f
    • Fangrui Song's avatar
      Move global namespace cl::opt inside llvm:: · 1e692113
      Fangrui Song authored
      1e692113
    • Matt Arsenault's avatar
      4f0eb572
    • Matt Arsenault's avatar
      ce4b719f
    • Matt Arsenault's avatar
      0a669bd8
    • Matt Arsenault's avatar
      llvm-reduce: Run instruction reduction last · 463ab1e0
      Matt Arsenault authored
      With the current state of mir support, this is going to generate
      a large number of verifier errors. Running the use and def
      reductions first helps to mitigate the impact of this.
      463ab1e0
    • pvanhout's avatar
      [DAG] Handle build_vector with all undefs in reduceBuildVecTruncToBitCast · 04f69345
      pvanhout authored
      While working on D143731 I hit a case where a build_vector with 2 undef operands could be generated (with one undef hidden behind a bitcast).
      That made `reduceBuildVecTruncToBitCast` crash because it seems to assume there is at least one good operand.
      
      Reviewed By: arsenm
      
      Differential Revision: https://reviews.llvm.org/D143886
      04f69345
    • Nikita Popov's avatar
      [LangRef] Global variable declarations imply minimum size · 2e9549db
      Nikita Popov authored
      Adjust the wording added in D78952 to say that global variable
      declarations (and interposable definitions) do imply a minimum
      size (and alignment) on the global. They just don't imply a
      maximum size.
      
      We rely on these semantics in at least two places:
      
      * Global dereferenceability: https://github.com/llvm/llvm-project/blob/2153544865a9733b06579823814c981f735e4201/llvm/lib/IR/Value.cpp#L907
      * Global inbounds GEP: https://github.com/llvm/llvm-project/blob/2153544865a9733b06579823814c981f735e4201/llvm/lib/IR/ConstantFold.cpp#L2283
      
      Differential Revision: https://reviews.llvm.org/D143057
      2e9549db
    • Chuanqi Xu's avatar
      [Coroutines] Don't run optimizations for optnone functions · af838c1b
      Chuanqi Xu authored
      Currently we will run two optimization (rematerialization and sink
      lifetime markers) unconditionally even if the coroutine is marked as
      optnone (O0). This looks not good. This patch disables these 2
      optimizations for optnone functions. An internal change shows the change
      improve the compilation time for 3% in the debug build.
      af838c1b
    • Tobias Gysi's avatar
      [mlir][llvm] Reintroduce string based attribute setting. · bfea8376
      Tobias Gysi authored
      Reintroduce string based attribute setting in the
      translation from LLVM dialect to LLVM IR. The TypeSwitch
      based implementation introduced in
      https://reviews.llvm.org/D143654  does not work for
      intrinsics that set the requiresAccessGroup or
      requiresAliasScope flag.
      
      Reviewed By: hgreving
      
      Differential Revision: https://reviews.llvm.org/D143936
      bfea8376
    • Tulio Magno Quites Machado Filho's avatar
      [PowerPC] Specify the dynamic loader prefix in ppc-float-abi-warning · cb90bb98
      Tulio Magno Quites Machado Filho authored
      Ensure the tests do not fail during cross compilation by specifying
      the dynamic loader prefix for a GNU installation that is expected to
      support IEEE 128-bit long double.
      
      Reviewed By: qiucf
      
      Differential Revision: https://reviews.llvm.org/D143736
      cb90bb98
    • Fangrui Song's avatar
      [LoopDeletion] Simplify. NFC · df3e73da
      Fangrui Song authored
      df3e73da
    • Chuanqi Xu's avatar
      [docs] Add document for clang-scan-deps -format=p1689 · 9c4f0d83
      Chuanqi Xu authored
      The patches for `clang-scan-deps` have been landed. And we need to
      document the behavior then.
      9c4f0d83
    • Vadim Paretsky (Intel Americas Inc)'s avatar
    • Kazu Hirata's avatar
      [ARM] Use llvm::rotl and llvm::rotr (NFC) · 5e78b749
      Kazu Hirata authored
      5e78b749
    • Craig Topper's avatar
    • Kazu Hirata's avatar
      [RISCV] Use llvm::rotl (NFC) · 639b7865
      Kazu Hirata authored
      639b7865
    • Vasileios Porpodas's avatar
      Recommit: [NFC][IR] Make Module::getAliasList() private · afad153a
      Vasileios Porpodas authored
      This reverts commit 6d4a674a.
      afad153a
    • Kazu Hirata's avatar
      df77dec9
    • Aart Bik's avatar
      [bazel] build fix · 9700eb4f
      Aart Bik authored
      Differential Revision: https://reviews.llvm.org/D143973
      9700eb4f
    • Kai Sasaki's avatar
      [mlir][affine] Normalize constant valued bound loop · 48f04ffa
      Kai Sasaki authored
      This change aims to resolve the issue reported in https://github.com/llvm/llvm-project/issues/59994.
      
      After calling AffineForOp#setUpperBound and setLowerBound, it makes the original affine map structure inconsistent. It's necessary to keep the original map to build the new induction vars.
      
      Reviewed By: bondhugula
      
      Differential Revision: https://reviews.llvm.org/D142082
      48f04ffa
    • Vasileios Porpodas's avatar
      Revert "[NFC][IR] Make Module::getAliasList() private" · 6d4a674a
      Vasileios Porpodas authored
      This reverts commit b64f7d02.
      6d4a674a
    • Arthur Eubanks's avatar
      Revert "[DAGCombiner] handle more store value forwarding" · 7c6b46e8
      Arthur Eubanks authored
      This reverts commit f35a09da.
      
      Causes miscompiles, see D138899
      7c6b46e8
    • Arthur Eubanks's avatar
      Revert "[DAGCombiner] fix comments for D138899; NFC" · ac6219d0
      Arthur Eubanks authored
      This reverts commit 63854f91.
      
      Dependent commit to be reverted.
      ac6219d0
    • Vasileios Porpodas's avatar
      [NFC][IR] Make Module::getAliasList() private · b64f7d02
      Vasileios Porpodas authored
      This patch adds several missing AliasList modifier functions, like
      removeAlias(), eraseAlias() and insertAlias().
      There is no longer need to access the list directly so it also makes
      getAliaList() private.
      
      Differential Revision: https://reviews.llvm.org/D143958
      b64f7d02
    • Chen Zheng's avatar
      [PowerPC][GISel] add support for fpconstant · 6ee2f770
      Chen Zheng authored
      Reviewed By: arsenm
      
      Differential Revision: https://reviews.llvm.org/D133340
      6ee2f770
    • Aart Bik's avatar
      Revert "[mlir] Make the vast majority of integration and runner tests work on Windows" · 5561e174
      Aart Bik authored
      This reverts commit 161b9d74.
      
      REASON:
      
      cmake --build . --target check-mlir-integration
      
      Failed Tests (186):
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-addi-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-cmpi-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-compare-results-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-constants-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-max-min-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-muli-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-shli-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-shrsi-i16.mlir
        MLIR :: Integration/Dialect/Arith/CPU/test-wide-int-emulation-shrui-i16.mlir
        MLIR :: Integration/Dialect/Async/CPU/microbench-linalg-async-parallel-for.mlir
        MLIR :: Integration/Dialect/Async/CPU/microbench-scf-async-parallel-for.mlir
        MLIR :: Integration/Dialect/Async/CPU/test-async-parallel-for-1d.mlir
        MLIR :: Integration/Dialect/Async/CPU/test-async-parallel-for-2d.mlir
        MLIR :: Integration/Dialect/Complex/CPU/correctness.mlir
        MLIR :: Integration/Dialect/LLVMIR/CPU/X86/test-inline-asm-vector.mlir
        MLIR :: Integration/Dialect/LLVMIR/CPU/X86/test-inline-asm.mlir
        MLIR :: Integration/Dialect/LLVMIR/CPU/test-vector-reductions-fp.mlir
        MLIR :: Integration/Dialect/LLVMIR/CPU/test-vector-reductions-int.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/matmul-vs-matvec.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/rank-reducing-subview.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-collapse-tensor.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-1d-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-1d-nwc-wcf-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-2d-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-2d-nhwc-hwcf-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-3d-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-conv-3d-ndhwc-dhwcf-call.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-elementwise.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-expand-tensor.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-one-shot-bufferize.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-padtensor.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-subtensor-insert-multiple-uses.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-subtensor-insert.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-tensor-e2e.mlir
        MLIR :: Integration/Dialect/Linalg/CPU/test-tensor-matmul.mlir
        MLIR :: Integration/Dialect/Memref/cast-runtime-verification.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/concatenate.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/dense_output.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/dense_output_f16.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_abs.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_binary.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_cast.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_codegen_dim.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_codegen_foreach.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_complex32.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_complex64.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_complex_ops.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_constant_to_sparse_tensor.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conv_1d_nwc_wcf.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conv_2d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conv_2d_nhwc_hwcf.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conv_3d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conv_3d_ndhwc_dhwcf.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conversion.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conversion_dyn.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conversion_ptr.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conversion_sparse2dense.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_conversion_sparse2sparse.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_dot.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_expand.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_file_io.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_filter_conv2d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_flatten.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_foreach_slices.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_index.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_index_dense.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_insert_1d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_insert_2d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_insert_3d.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matmul.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matrix_ops.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_matvec.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_mttkrp.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_out_mult_elt.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_out_reduction.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_out_simple.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_pack.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_quantized_matmul.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_re_im.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reduce_custom.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reduce_custom_prod.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reductions.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reductions_prod.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_reshape.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_rewrite_push_back.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_rewrite_sort_coo.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sampled_matmul.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sampled_mm_fusion.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_scale.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_scf_nested.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_select.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sign.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sorted_coo.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_spmm.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_storage.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sum.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sum_bf16.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sum_c32.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_sum_f16.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_tanh.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_tensor_mul.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_tensor_ops.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_transpose.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_unary.mlir
        MLIR :: Integration/Dialect/SparseTensor/CPU/sparse_vector_ops.mlir
        MLIR :: Integration/Dialect/SparseTensor/python/test_SDDMM.py
        MLIR :: Integration/Dialect/SparseTensor/python/test_SpMM.py
        MLIR :: Integration/Dialect/SparseTensor/python/test_elementwise_add_sparse_output.py
        MLIR :: Integration/Dialect/SparseTensor/python/test_output.py
        MLIR :: Integration/Dialect/SparseTensor/python/test_stress.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_MTTKRP.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_SDDMM.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_SpMM.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_SpMV.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_Tensor.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_scalar_tensor_algebra.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_simple_tensor_algebra.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_tensor_complex.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_tensor_types.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_tensor_unary_ops.py
        MLIR :: Integration/Dialect/SparseTensor/taco/test_true_dense_tensor_algebra.py
        MLIR :: Integration/Dialect/SparseTensor/taco/unit_test_tensor_core.py
        MLIR :: Integration/Dialect/SparseTensor/taco/unit_test_tensor_io.py
        MLIR :: Integration/Dialect/SparseTensor/taco/unit_test_tensor_utils.py
        MLIR :: Integration/Dialect/Standard/CPU/test-ceil-floor-pos-neg.mlir
        MLIR :: Integration/Dialect/Standard/CPU/test_subview.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-mulf-full.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-mulf.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-muli-ext.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-muli-full.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-muli.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-tilezero-block.mlir
        MLIR :: Integration/Dialect/Vector/CPU/AMX/test-tilezero.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-dot.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-inline-asm-vector-avx512.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-mask-compress.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-rsqrt.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-sparse-dot-product.mlir
        MLIR :: Integration/Dialect/Vector/CPU/X86Vector/test-vp2intersect-i32.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-0-d-vectors.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-broadcast.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-compress.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-constant-mask.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-contraction.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-create-mask-v4i1.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-create-mask.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-expand.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-extract-strided-slice.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-flat-transpose-col.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-flat-transpose-row.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-fma.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-gather.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-index-vectors.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-insert-strided-slice.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-maskedload.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-maskedstore.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-matrix-multiply-col.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-matrix-multiply-row.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-outerproduct-f32.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-outerproduct-i64.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-print-int.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-realloc.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-f32-reassoc.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-f32.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-f64-reassoc.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-f64.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-i32.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-i4.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-i64.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-si4.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-reductions-ui4.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-scan.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-scatter.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-shape-cast.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-shuffle.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-sparse-dot-matvec.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-sparse-saxpy-jagged-matvec.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-read-1d.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-read-2d.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-read-3d.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-read.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-to-loops.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transfer-write.mlir
        MLIR :: Integration/Dialect/Vector/CPU/test-transpose.mlir
      
      Testing Time: 0.29s
        Unsupported:  31
        Passed     :   5
        Failed     : 186
      
      Differential Revision: https://reviews.llvm.org/D143970
      5561e174
    • Shao-Ce SUN's avatar
      [flang] Disable libc++ assertions in the runtime library · 66372594
      Shao-Ce SUN authored
      Similar to D143168. Solve compiling error caused by D143612.
      
      Error info:
      ```
      flang-new -flang-experimental-exec hello.f90
      /usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x25
      llvm-project/build/lib/libFortranRuntime.a(unit.cpp.o): in function `std::__1::optional<unsigned long>::operator*[abi:v170000]() &':
      unit.cpp:(.text._ZNRSt3__18optionalImEdeB7v170000Ev[_ZNRSt3__18optionalImEdeB7v170000Ev]+0x4f): undefined reference to `std::__1::__libcpp_verbose_abort(char const*, ...)'
      /usr/bin/ld: llvm-project/build/lib/libFortranRuntime.a(unit.cpp.o): in function `void std::__1::__optional_storage_base<long, false>::__construct[abi:v170000]<unsigned long>(unsigned long&&)':
      unit.cpp:(.text._ZNSt3__123__optional_storage_baseIlLb0EE11__constructB7v170000IJmEEEvDpOT_[_ZNSt3__123__optional_storage_baseIlLb0EE11__constructB7v170000IJmEEEvDpOT_]+0x55): undefined reference to `std::__1::__libcpp_verbose_abort(char const*, ...)'
      ```
      
      Reviewed By: vzakhari
      
      Differential Revision: https://reviews.llvm.org/D143890
      66372594
    • Peter Klausler's avatar
      [flang] Catch repeated BIND(C) attribute specifications for a symbol · cff7fad1
      Peter Klausler authored
      A BIND(C) attribute statement or type-declaration-stmt attribute, just
      like most attributes, can only appear once.  Name resolution was excluding
      the BIND(C) attribute from its check for duplicated attributes, but I
      don't see a reason that remains to do so.
      
      Differential Revision: https://reviews.llvm.org/D143834
      cff7fad1
    • eopXD's avatar
      [Clang][RISCV] Guard vector float16 type correctly with semantic analysis · 235e90c1
      eopXD authored
      Before this commit, vector float 16 types (e.g. `vfloat16m1_t`) of RVV
      is only defined when extension `zvfh` is defined. However this
      generate inaccurate diagnostics like:
      
      ```
      error: unknown type name 'vfloat16m1_t'
      ```
      
      This commit improves the compiler by guarding type check correctly
      under semantic analysis.
      
      Reviewed By: craig.topper
      
      Differential Revision: https://reviews.llvm.org/D143657
      235e90c1
    • Jie Fu's avatar
      [mlir][NFC] Remove unused variable 'indexType' in GPUTransformOps.cpp · 4b815d84
      Jie Fu authored
      /data/jiefu/llvm-project/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp:430:13: error: unused variable 'indexType' [-Werror,-Wunused-variable]
        IndexType indexType = rewriter.getIndexType();
                  ^
      1 error generated.
      4b815d84
    • Thomas Raoux's avatar
      [mlir][gpu] NFC change to pass threadID ops to rewriteOneForeachThreadToGpuThreads · 288ae0b9
      Thomas Raoux authored
      This allows user to give both the thread ids and dimension of the threads we want to distribute on.
      This means we can use it to distribute on warps as well.
      
      Reviewed By: harsh
      
      Differential Revision: https://reviews.llvm.org/D143950
      288ae0b9
    • Peter Klausler's avatar
      [flang] Check for invalid BIND(C) names · 69373a5d
      Peter Klausler authored
      Require BIND(C) interoperable names to be valid C identifiers.
      
      Differential Revision: https://reviews.llvm.org/D143833
      69373a5d
    • Peter Klausler's avatar
      [flang] Check for non-interoperable intrinsic types in BIND(C) derived types · 4148f276
      Peter Klausler authored
      Every component of a BIND(C) interoperable derived type must have an
      interoperable type.  Semantics was checking components with derived types,
      but not components with intrinsic types.
      
      Differential Revision: https://reviews.llvm.org/D143832
      4148f276
    • Adrian Vogelsgesang's avatar
    • Peter Klausler's avatar
      [flang] Pointers returned from functions are not definable as pointers · 30d93230
      Peter Klausler authored
      A reference to a pointer-valued function is a "variable" in the argot of
      the Fortran standard, and can be the left-hand side of an assignment
      statement or passed as a definable actual argument -- but it is not a
      definable pointer, and cannot be associated with a pointer dummy argument
      that is not INTENT(IN).
      
      Differential Revision: https://reviews.llvm.org/D143827
      30d93230
    • Peter Klausler's avatar
      [flang] Respect inaccessibility of type-bound ASSIGNMENT(=) · 632fd9fb
      Peter Klausler authored
      When a derived type has a PRIVATE type-bound generic binding for
      a defined ASSIGNMENT(=), don't use it in scopes outside of the
      module that defines the type.  We already get this case right
      for other type-bound generics, including defined operators,
      and for non-type-bound generic interfaces, but the check was
      not applied for this case.
      
      Differential Revision: https://reviews.llvm.org/D143826
      632fd9fb