From bc29c81528a24fda115ad78226cea880b31d3470 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 1 Oct 2014 16:11:38 -0400 Subject: [PATCH] P4 to Git Change 1083322 by yaxunl@yaxunl_stg_win50 on 2014/10/01 16:00:22 ECR #377625 - AMDIL Function support: allow functions without names to be not inlined. Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/lib/backends/common/linker.cpp#114 edit [ROCm/clr commit: 26ad0e1a8e0bb75acc7d61f99726004ad11d7f26] --- projects/clr/rocclr/compiler/lib/backends/common/linker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/rocclr/compiler/lib/backends/common/linker.cpp b/projects/clr/rocclr/compiler/lib/backends/common/linker.cpp index f2fa6471fd..1a0ce91253 100644 --- a/projects/clr/rocclr/compiler/lib/backends/common/linker.cpp +++ b/projects/clr/rocclr/compiler/lib/backends/common/linker.cpp @@ -223,8 +223,7 @@ AddNoInlineAttr(llvm::Module* M) { LLVMContext &Context = M->getContext(); for (llvm::Module::iterator I = M->begin(), E = M->end(); I != E; ++I) { - if (I->hasName() && - !I->isDeclaration() && + if (!I->isDeclaration() && !I->isIntrinsic() && !I->getName().startswith("__amdil") && !I->getFnAttributes().hasAttribute(Attributes::AlwaysInline) &&