[AMDGPU] Use default member initializers in Subtarget classes
authorJay Foad <jay.foad@amd.com>
Tue, 12 Apr 2022 15:19:11 +0000 (16:19 +0100)
committerJay Foad <jay.foad@amd.com>
Tue, 12 Apr 2022 15:42:30 +0000 (16:42 +0100)
commit8a53b25ed55e88d576f712c306dce5ae7dbe1033
tree462c62c6f1187da853b2a905409a9d98f4d6a132
parent2ac876c52c3efcf126eca10a5086ceeacc954813
[AMDGPU] Use default member initializers in Subtarget classes

Use default member initializers in AMDGPUSubtarget and subclasses. This
is to guard against adding a new feature boolean in AMDGPUSubtarget.h
but forgetting to initialize it to false in AMDGPUSubtarget.cpp.

This was mostly autogenerated by:
clang-tidy -checks=-*,cppcoreguidelines-prefer-member-initializer,modernize-use-default-member-init -header-filter=Subtarget -fix lib/Target/AMDGPU/*Subtarget.cpp

Differential Revision: https://reviews.llvm.org/D123613
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/lib/Target/AMDGPU/GCNSubtarget.h
llvm/lib/Target/AMDGPU/R600Subtarget.cpp
llvm/lib/Target/AMDGPU/R600Subtarget.h