AMDGPU: Assume ECC is enabled by default if supported
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Apr 2019 01:58:57 +0000 (01:58 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Apr 2019 01:58:57 +0000 (01:58 +0000)
commitf426ddbfc7d815107faea6751719fe41877ce943
tree2f28a7f935fa9e330f712596b9e76ffba7d26d8c
parentf7887d41cbd73cad2e92eea60c710e4f263cdf18
AMDGPU: Assume ECC is enabled by default if supported

The test should really be checking for the property directly in the
code object headers, but there are problems with this. I don't see
this directly represented in the text form, and for the binary
emission this is depending on a function level subtarget feature to
emit a global flag.

llvm-svn: 357558
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
llvm/test/CodeGen/AMDGPU/load-hi16.ll
llvm/test/CodeGen/AMDGPU/sram-ecc-default.ll [new file with mode: 0644]
llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll [new file with mode: 0644]