================ @@ -4877,7 +4877,9 @@ void Sema::AddModeAttr(Decl *D, const AttributeCommonInfo &CI, NewElemTy = Context.getRealTypeForBitwidth(DestWidth, ExplicitType); if (NewElemTy.isNull()) { - Diag(AttrLoc, diag::err_machine_mode) << 1 /*Unsupported*/ << Name; + // Only emit diagnostic on host for 128-bit mode attribute ---------------- pranavk wrote:
There are two diags that I disabled as part of this PR: 1. "%0 is not supported on this target" 2. unsupported machine mode __TC__ The diag that got emitted as part of building sample snippet that you pasted in this comment thread is neither 1 nor 2. This diag comes from part of clang/LLVM when it starts to generate code for nvptx specifically. https://github.com/llvm/llvm-project/pull/83918 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits