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

Chris B via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 9 16:50:26 PDT 2024


================
@@ -2471,11 +2471,14 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
     B.addAttribute(llvm::Attribute::StackProtectReq);
 
   if (!D) {
+    // HLSL functions must always be inlined
----------------
llvm-beanz wrote:

nit: we do try have comments be complete sentences and puctuated.
```suggestion
    // HLSL functions must always be inlined.
```

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


More information about the cfe-commits mailing list