Author: kzhuravl Date: Mon Nov 5 14:44:59 2018 New Revision: 346178 URL: http://llvm.org/viewvc/llvm-project?rev=346178&view=rev Log: AMDGPU: Add sram-ecc feature options
Differential Revision: https://reviews.llvm.org/D53223 Modified: cfe/trunk/include/clang/Driver/Options.td cfe/trunk/test/Driver/amdgpu-features.c Modified: cfe/trunk/include/clang/Driver/Options.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=346178&r1=346177&r2=346178&view=diff ============================================================================== --- cfe/trunk/include/clang/Driver/Options.td (original) +++ cfe/trunk/include/clang/Driver/Options.td Mon Nov 5 14:44:59 2018 @@ -2104,6 +2104,10 @@ def mxnack : Flag<["-"], "mxnack">, Grou HelpText<"Enable XNACK (AMDGPU only)">; def mno_xnack : Flag<["-"], "mno-xnack">, Group<m_amdgpu_Features_Group>, HelpText<"Disable XNACK (AMDGPU only)">; +def msram_ecc : Flag<["-"], "msram-ecc">, Group<m_amdgpu_Features_Group>, + HelpText<"Enable SRAM ECC (AMDGPU only)">; +def mno_sram_ecc : Flag<["-"], "mno-sram-ecc">, Group<m_amdgpu_Features_Group>, + HelpText<"Disable SRAM ECC (AMDGPU only)">; def faltivec : Flag<["-"], "faltivec">, Group<f_Group>, Flags<[DriverOption]>; def fno_altivec : Flag<["-"], "fno-altivec">, Group<f_Group>, Flags<[DriverOption]>; Modified: cfe/trunk/test/Driver/amdgpu-features.c URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/amdgpu-features.c?rev=346178&r1=346177&r2=346178&view=diff ============================================================================== --- cfe/trunk/test/Driver/amdgpu-features.c (original) +++ cfe/trunk/test/Driver/amdgpu-features.c Mon Nov 5 14:44:59 2018 @@ -17,3 +17,9 @@ // RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-xnack %s 2>&1 | FileCheck --check-prefix=NO-XNACK %s // NO-XNACK: "-target-feature" "-xnack" + +// RUN: %clang -### -target amdgcn -mcpu=gfx700 -msram-ecc %s 2>&1 | FileCheck --check-prefix=SRAM-ECC %s +// SRAM-ECC: "-target-feature" "+sram-ecc" + +// RUN: %clang -### -target amdgcn -mcpu=gfx700 -mno-sram-ecc %s 2>&1 | FileCheck --check-prefix=NO-SRAM-ECC %s +// NO-SRAM-ECC: "-target-feature" "-sram-ecc" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits