[clang] [HLSL] set alwaysinline on HLSL functions (PR #106588)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 29 17:12:31 PDT 2024


================
@@ -290,8 +290,6 @@ struct BuiltinTypeDeclBuilder {
                                              SourceLocation()));
     MethodDecl->setLexicalDeclContext(Record);
     MethodDecl->setAccess(AccessSpecifier::AS_public);
-    MethodDecl->addAttr(AlwaysInlineAttr::CreateImplicit(
-        AST, SourceRange(), AlwaysInlineAttr::CXX11_clang_always_inline));
----------------
llvm-beanz wrote:

Why was it necessary to remove this? I think we want this because we'll want these calls inlined even in separate compilation cases.

https://github.com/llvm/llvm-project/pull/106588


More information about the cfe-commits mailing list