Skip to content

Commit 59dec75

Browse files
committed
git-clang-format
1 parent 59bc234 commit 59dec75

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

clang/lib/Basic/Targets/AMDGPU.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUTargetInfo final : public TargetInfo {
6262
}
6363

6464
/// Has fast fma f64
65-
bool hasFastFMA() const {
66-
return getTriple().isAMDGCN();
67-
}
65+
bool hasFastFMA() const { return getTriple().isAMDGCN(); }
6866

6967
bool hasFMAF() const {
7068
return getTriple().isAMDGCN() ||

clang/lib/Driver/Driver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3408,8 +3408,7 @@ class OffloadingActionBuilder final {
34083408

34093409
const ToolChain *HostTC = C.getSingleOffloadToolChain<Action::OFK_Host>();
34103410
assert(HostTC && "No toolchain for host compilation.");
3411-
if (HostTC->getTriple().isNVPTX() ||
3412-
HostTC->getTriple().isAMDGCN()) {
3411+
if (HostTC->getTriple().isNVPTX() || HostTC->getTriple().isAMDGCN()) {
34133412
// We do not support targeting NVPTX/AMDGCN for host compilation. Throw
34143413
// an error and abort pipeline construction early so we don't trip
34153414
// asserts that assume device-side compilation.

clang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4322,8 +4322,7 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
43224322
TT.getArch() == llvm::Triple::systemz ||
43234323
TT.getArch() == llvm::Triple::loongarch64 ||
43244324
TT.getArch() == llvm::Triple::nvptx ||
4325-
TT.getArch() == llvm::Triple::nvptx64 ||
4326-
TT.isAMDGCN() ||
4325+
TT.getArch() == llvm::Triple::nvptx64 || TT.isAMDGCN() ||
43274326
TT.getArch() == llvm::Triple::x86 ||
43284327
TT.getArch() == llvm::Triple::x86_64))
43294328
Diags.Report(diag::err_drv_invalid_omp_target) << A->getValue(i);

flang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,7 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
11741174
!(tt.getArch() == llvm::Triple::aarch64 || tt.isPPC() ||
11751175
tt.getArch() == llvm::Triple::systemz ||
11761176
tt.getArch() == llvm::Triple::nvptx ||
1177-
tt.getArch() == llvm::Triple::nvptx64 ||
1178-
tt.isAMDGCN() ||
1177+
tt.getArch() == llvm::Triple::nvptx64 || tt.isAMDGCN() ||
11791178
tt.getArch() == llvm::Triple::x86 ||
11801179
tt.getArch() == llvm::Triple::x86_64))
11811180
diags.Report(clang::diag::err_drv_invalid_omp_target)

0 commit comments

Comments
 (0)