[all-commits] [llvm/llvm-project] 0f1b5f: [NVPTX] Integrate ptxas to LIT tests

Andrew Savonichev via All-commits all-commits at lists.llvm.org
Thu Apr 28 05:02:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f1b5f115a7f6fd90989996ae514810773157b76
      https://github.com/llvm/llvm-project/commit/0f1b5f115a7f6fd90989996ae514810773157b76
  Author: Andrew Savonichev <andrew.savonichev at gmail.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M llvm/test/CodeGen/NVPTX/LoadStoreVectorizer.ll
    M llvm/test/CodeGen/NVPTX/MachineSink-call.ll
    M llvm/test/CodeGen/NVPTX/MachineSink-convergent.ll
    M llvm/test/CodeGen/NVPTX/TailDuplication-convergent.ll
    M llvm/test/CodeGen/NVPTX/access-non-generic.ll
    M llvm/test/CodeGen/NVPTX/add-128bit.ll
    M llvm/test/CodeGen/NVPTX/addrspacecast-gvar.ll
    M llvm/test/CodeGen/NVPTX/addrspacecast.ll
    M llvm/test/CodeGen/NVPTX/aggr-param.ll
    M llvm/test/CodeGen/NVPTX/aggregate-return.ll
    M llvm/test/CodeGen/NVPTX/annotations.ll
    M llvm/test/CodeGen/NVPTX/arg-lowering.ll
    M llvm/test/CodeGen/NVPTX/arithmetic-fp-sm20.ll
    M llvm/test/CodeGen/NVPTX/arithmetic-int.ll
    M llvm/test/CodeGen/NVPTX/async-copy.ll
    M llvm/test/CodeGen/NVPTX/atomics-sm60.ll
    M llvm/test/CodeGen/NVPTX/atomics-with-scope.ll
    M llvm/test/CodeGen/NVPTX/atomics.ll
    M llvm/test/CodeGen/NVPTX/b52037.ll
    M llvm/test/CodeGen/NVPTX/barrier.ll
    M llvm/test/CodeGen/NVPTX/bfe.ll
    M llvm/test/CodeGen/NVPTX/branch-fold.ll
    M llvm/test/CodeGen/NVPTX/bug17709.ll
    M llvm/test/CodeGen/NVPTX/bug21465.ll
    M llvm/test/CodeGen/NVPTX/bug22246.ll
    M llvm/test/CodeGen/NVPTX/bug22322.ll
    M llvm/test/CodeGen/NVPTX/bug26185-2.ll
    M llvm/test/CodeGen/NVPTX/bug26185.ll
    M llvm/test/CodeGen/NVPTX/bug41651.ll
    M llvm/test/CodeGen/NVPTX/bypass-div.ll
    M llvm/test/CodeGen/NVPTX/call-with-alloca-buffer.ll
    M llvm/test/CodeGen/NVPTX/callchain.ll
    M llvm/test/CodeGen/NVPTX/calling-conv.ll
    M llvm/test/CodeGen/NVPTX/calls-with-phi.ll
    M llvm/test/CodeGen/NVPTX/combine-min-max.ll
    M llvm/test/CodeGen/NVPTX/compare-int.ll
    M llvm/test/CodeGen/NVPTX/constant-vectors.ll
    M llvm/test/CodeGen/NVPTX/convert-fp.ll
    M llvm/test/CodeGen/NVPTX/convert-int-sm20.ll
    M llvm/test/CodeGen/NVPTX/convert-sm80.ll
    M llvm/test/CodeGen/NVPTX/ctlz.ll
    M llvm/test/CodeGen/NVPTX/ctpop.ll
    M llvm/test/CodeGen/NVPTX/cttz.ll
    M llvm/test/CodeGen/NVPTX/disable-opt.ll
    M llvm/test/CodeGen/NVPTX/div-ri.ll
    M llvm/test/CodeGen/NVPTX/divrem-combine.ll
    M llvm/test/CodeGen/NVPTX/envreg.ll
    M llvm/test/CodeGen/NVPTX/extloadv.ll
    M llvm/test/CodeGen/NVPTX/f16-ex2.ll
    M llvm/test/CodeGen/NVPTX/f16-instructions.ll
    M llvm/test/CodeGen/NVPTX/f16x2-instructions.ll
    M llvm/test/CodeGen/NVPTX/fast-math.ll
    M llvm/test/CodeGen/NVPTX/fma-assoc.ll
    M llvm/test/CodeGen/NVPTX/fma-disable.ll
    M llvm/test/CodeGen/NVPTX/fma.ll
    M llvm/test/CodeGen/NVPTX/fminimum-fmaximum.ll
    M llvm/test/CodeGen/NVPTX/fns.ll
    M llvm/test/CodeGen/NVPTX/fp-contract.ll
    M llvm/test/CodeGen/NVPTX/fp-literals.ll
    M llvm/test/CodeGen/NVPTX/fp16.ll
    M llvm/test/CodeGen/NVPTX/function-align.ll
    M llvm/test/CodeGen/NVPTX/generic-to-nvvm.ll
    M llvm/test/CodeGen/NVPTX/global-addrspace.ll
    M llvm/test/CodeGen/NVPTX/global-ordering.ll
    M llvm/test/CodeGen/NVPTX/global-variable-big.ll
    M llvm/test/CodeGen/NVPTX/global-visibility.ll
    M llvm/test/CodeGen/NVPTX/globals_init.ll
    M llvm/test/CodeGen/NVPTX/globals_lowering.ll
    M llvm/test/CodeGen/NVPTX/half.ll
    M llvm/test/CodeGen/NVPTX/i1-global.ll
    M llvm/test/CodeGen/NVPTX/i1-int-to-fp.ll
    M llvm/test/CodeGen/NVPTX/i1-param.ll
    M llvm/test/CodeGen/NVPTX/i128-global.ll
    M llvm/test/CodeGen/NVPTX/i128-param.ll
    M llvm/test/CodeGen/NVPTX/i128-retval.ll
    M llvm/test/CodeGen/NVPTX/i128-struct.ll
    M llvm/test/CodeGen/NVPTX/i8-param.ll
    M llvm/test/CodeGen/NVPTX/idioms.ll
    M llvm/test/CodeGen/NVPTX/imad.ll
    M llvm/test/CodeGen/NVPTX/inline-asm.ll
    M llvm/test/CodeGen/NVPTX/inlineasm-output-template.ll
    M llvm/test/CodeGen/NVPTX/intrinsic-old.ll
    M llvm/test/CodeGen/NVPTX/intrinsics.ll
    M llvm/test/CodeGen/NVPTX/isspacep.ll
    M llvm/test/CodeGen/NVPTX/ld-addrspace.ll
    M llvm/test/CodeGen/NVPTX/ld-generic.ll
    M llvm/test/CodeGen/NVPTX/ld-st-addrrspace.py
    M llvm/test/CodeGen/NVPTX/ldg-invariant.ll
    M llvm/test/CodeGen/NVPTX/ldparam-v4.ll
    M llvm/test/CodeGen/NVPTX/ldu-i8.ll
    M llvm/test/CodeGen/NVPTX/ldu-ldg.ll
    M llvm/test/CodeGen/NVPTX/ldu-reg-plus-offset.ll
    M llvm/test/CodeGen/NVPTX/libcall-fulfilled.ll
    M llvm/test/CodeGen/NVPTX/load-sext-i1.ll
    M llvm/test/CodeGen/NVPTX/load-store.ll
    M llvm/test/CodeGen/NVPTX/load-with-non-coherent-cache.ll
    M llvm/test/CodeGen/NVPTX/local-stack-frame.ll
    M llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
    M llvm/test/CodeGen/NVPTX/lower-alloca.ll
    M llvm/test/CodeGen/NVPTX/lower-args.ll
    M llvm/test/CodeGen/NVPTX/lower-byval-args.ll
    M llvm/test/CodeGen/NVPTX/lower-kernel-ptr-arg.ll
    M llvm/test/CodeGen/NVPTX/machine-sink.ll
    M llvm/test/CodeGen/NVPTX/managed.ll
    M llvm/test/CodeGen/NVPTX/match.ll
    M llvm/test/CodeGen/NVPTX/math-intrins-sm53-ptx42.ll
    M llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70.ll
    M llvm/test/CodeGen/NVPTX/math-intrins-sm86-ptx72.ll
    M llvm/test/CodeGen/NVPTX/math-intrins.ll
    M llvm/test/CodeGen/NVPTX/mbarrier.ll
    M llvm/test/CodeGen/NVPTX/minmax-negative.ll
    M llvm/test/CodeGen/NVPTX/misaligned-vector-ldst.ll
    M llvm/test/CodeGen/NVPTX/module-inline-asm.ll
    M llvm/test/CodeGen/NVPTX/mulwide.ll
    M llvm/test/CodeGen/NVPTX/named-barriers.ll
    M llvm/test/CodeGen/NVPTX/no-extra-parens.ll
    M llvm/test/CodeGen/NVPTX/nofunc.ll
    M llvm/test/CodeGen/NVPTX/nounroll.ll
    M llvm/test/CodeGen/NVPTX/nvcl-param-align.ll
    M llvm/test/CodeGen/NVPTX/nvvm-annotations-D120129.ll
    M llvm/test/CodeGen/NVPTX/param-align.ll
    M llvm/test/CodeGen/NVPTX/param-load-store.ll
    M llvm/test/CodeGen/NVPTX/param-vectorize-device.ll
    M llvm/test/CodeGen/NVPTX/param-vectorize-kernel.ll
    M llvm/test/CodeGen/NVPTX/pow2_mask_cmp.ll
    M llvm/test/CodeGen/NVPTX/pr13291-i1-store.ll
    M llvm/test/CodeGen/NVPTX/pr16278.ll
    M llvm/test/CodeGen/NVPTX/pr17529.ll
    M llvm/test/CodeGen/NVPTX/read-global-variable-constant.ll
    M llvm/test/CodeGen/NVPTX/redux-sync.ll
    M llvm/test/CodeGen/NVPTX/refl1.ll
    M llvm/test/CodeGen/NVPTX/reg-copy.ll
    M llvm/test/CodeGen/NVPTX/reg-types.ll
    M llvm/test/CodeGen/NVPTX/rotate.ll
    M llvm/test/CodeGen/NVPTX/rotate_64.ll
    M llvm/test/CodeGen/NVPTX/sched1.ll
    M llvm/test/CodeGen/NVPTX/sched2.ll
    M llvm/test/CodeGen/NVPTX/sext-in-reg.ll
    M llvm/test/CodeGen/NVPTX/sext-params.ll
    M llvm/test/CodeGen/NVPTX/shfl-p.ll
    M llvm/test/CodeGen/NVPTX/shfl-sync-p.ll
    M llvm/test/CodeGen/NVPTX/shfl-sync.ll
    M llvm/test/CodeGen/NVPTX/shfl.ll
    M llvm/test/CodeGen/NVPTX/shift-parts.ll
    M llvm/test/CodeGen/NVPTX/simple-call.ll
    M llvm/test/CodeGen/NVPTX/sqrt-approx.ll
    M llvm/test/CodeGen/NVPTX/st-addrspace.ll
    M llvm/test/CodeGen/NVPTX/st-generic.ll
    M llvm/test/CodeGen/NVPTX/store-retval.ll
    M llvm/test/CodeGen/NVPTX/surf-read-cuda.ll
    M llvm/test/CodeGen/NVPTX/surf-read.ll
    M llvm/test/CodeGen/NVPTX/surf-tex.py
    M llvm/test/CodeGen/NVPTX/surf-write-cuda.ll
    M llvm/test/CodeGen/NVPTX/surf-write.ll
    M llvm/test/CodeGen/NVPTX/symbol-naming.ll
    M llvm/test/CodeGen/NVPTX/tex-read-cuda.ll
    M llvm/test/CodeGen/NVPTX/tex-read.ll
    M llvm/test/CodeGen/NVPTX/texsurf-queries.ll
    M llvm/test/CodeGen/NVPTX/tid-range.ll
    M llvm/test/CodeGen/NVPTX/tuple-literal.ll
    M llvm/test/CodeGen/NVPTX/vec-param-load.ll
    M llvm/test/CodeGen/NVPTX/vec8.ll
    M llvm/test/CodeGen/NVPTX/vector-args.ll
    M llvm/test/CodeGen/NVPTX/vector-call.ll
    M llvm/test/CodeGen/NVPTX/vector-compare.ll
    M llvm/test/CodeGen/NVPTX/vector-global.ll
    M llvm/test/CodeGen/NVPTX/vector-loads.ll
    M llvm/test/CodeGen/NVPTX/vector-select.ll
    M llvm/test/CodeGen/NVPTX/vector-stores.ll
    M llvm/test/CodeGen/NVPTX/vectorize-misaligned.ll
    M llvm/test/CodeGen/NVPTX/vote.ll
    M llvm/test/CodeGen/NVPTX/weak-global.ll
    M llvm/test/CodeGen/NVPTX/weak-linkage.ll
    M llvm/test/CodeGen/NVPTX/wmma.py
    M llvm/test/CodeGen/NVPTX/zeroext-32bit.ll
    M llvm/test/DebugInfo/NVPTX/crash-missing-DISubprogram.ll
    M llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
    M llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
    M llvm/test/DebugInfo/NVPTX/dbg-value-const-byref.ll
    M llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
    M llvm/test/DebugInfo/NVPTX/debug-empty.ll
    M llvm/test/DebugInfo/NVPTX/debug-file-loc-only.ll
    M llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
    M llvm/test/DebugInfo/NVPTX/debug-info.ll
    M llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
    M llvm/test/DebugInfo/NVPTX/debug-name-table.ll
    M llvm/test/DebugInfo/NVPTX/dwarf-file-dir.ll
    M llvm/test/DebugInfo/NVPTX/packed_bitfields.ll
    M llvm/test/lit.cfg.py
    M llvm/test/lit.site.cfg.py.in

  Log Message:
  -----------
  [NVPTX] Integrate ptxas to LIT tests

ptxas is a proprietary compiler from Nvidia that can compile PTX to
machine code (SASS). It has a lot of diagnostics to catch errors
in PTX, which can be used to verify PTX output from llc.

Set -DPXTAS_EXECUTABLE=/path/to/ptxas CMake option to enable it.
If this option is not set, then ptxas is substituted to true which
effectively disables all ptxas RUN lines.

LLVM_PTXAS_EXECUTABLE environment variable takes precedence over
the CMake option, and allows to override ptxas executable that is used for LIT
without complete re-configuration.

Differential Revision: https://reviews.llvm.org/D121727




More information about the All-commits mailing list