[all-commits] [llvm/llvm-project] 51ade3: [HIP] Support device sanitizer

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Thu Feb 18 20:33:31 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51ade31e67897bbd6f363f26d9110ec4d6ddaa7f
      https://github.com/llvm/llvm-project/commit/51ade31e67897bbd6f363f26d9110ec4d6ddaa7f
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-02-18 (Thu, 18 Feb 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/SanitizerArgs.cpp
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/HIP.cpp
    M clang/lib/Driver/ToolChains/HIP.h
    M clang/lib/Driver/ToolChains/ROCm.h
    A clang/test/Driver/Inputs/rocm-invalid/README
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/hip.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/ockl.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_correctly_rounded_sqrt_off.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_daz_opt_off.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_daz_opt_on.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_finite_only_off.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_finite_only_on.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1010.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1011.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_1012.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_803.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_900.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_isa_version_908.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_unsafe_math_off.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_unsafe_math_on.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_wavefrontsize64_off.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/oclc_wavefrontsize64_on.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/ocml.bc
    A clang/test/Driver/Inputs/rocm-invalid/amdgcn/bitcode/opencl.bc
    A clang/test/Driver/Inputs/rocm-invalid/bin/.hipVersion
    A clang/test/Driver/Inputs/rocm-invalid/include/hip/hip_runtime.h
    A clang/test/Driver/Inputs/rocm/amdgcn/bitcode/asanrtl.bc
    M clang/test/Driver/hip-sanitize-options.hip

  Log Message:
  -----------
  [HIP] Support device sanitizer

Add option -fgpu-sanitize to enable sanitizer for AMDGPU target.

Since it is experimental, it is off by default.

Reviewed by: Artem Belevich

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




More information about the All-commits mailing list