[clang] [CIR][Dialect] Add SourceLangAttr (PR #152511)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 7 10:25:31 PDT 2025
================
@@ -495,6 +498,27 @@ void CIRGenModule::setNonAliasAttributes(GlobalDecl gd, mlir::Operation *op) {
assert(!cir::MissingFeatures::setTargetAttributes());
}
+cir::SourceLanguage CIRGenModule::getCIRSourceLanguage() const {
+ using ClangStd = clang::LangStandard;
+ using CIRLang = cir::SourceLanguage;
+ auto opts = getLangOpts();
+
+ if (opts.OpenCL && !opts.OpenCLCPlusPlus)
+ llvm_unreachable("NYI");
----------------
bcardosolopes wrote:
Use `cgm.errorNYI` here.
https://github.com/llvm/llvm-project/pull/152511
More information about the cfe-commits
mailing list