From dccc0a836c20914549fa375905615db49d2f813b Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 14 Mar 2025 14:02:15 -0700 Subject: [NFC][AMDGPU] Replace more direct arch comparison with isAMDGCN() (#131379) This is an extension of #131357. Hopefully this would be the last one. --- flang/lib/Frontend/CompilerInvocation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'flang/lib/Frontend/CompilerInvocation.cpp') diff --git a/flang/lib/Frontend/CompilerInvocation.cpp b/flang/lib/Frontend/CompilerInvocation.cpp index edf7387..f433ec9 100644 --- a/flang/lib/Frontend/CompilerInvocation.cpp +++ b/flang/lib/Frontend/CompilerInvocation.cpp @@ -1174,8 +1174,7 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args, !(tt.getArch() == llvm::Triple::aarch64 || tt.isPPC() || tt.getArch() == llvm::Triple::systemz || tt.getArch() == llvm::Triple::nvptx || - tt.getArch() == llvm::Triple::nvptx64 || - tt.getArch() == llvm::Triple::amdgcn || + tt.getArch() == llvm::Triple::nvptx64 || tt.isAMDGCN() || tt.getArch() == llvm::Triple::x86 || tt.getArch() == llvm::Triple::x86_64)) diags.Report(clang::diag::err_drv_invalid_omp_target) -- cgit v1.1