[clang] [llvm] [X86][AMDLIBM] - Lower scalar call to AMD's AOCL fast scalar call (-fsclrlib=AMDLIBM) (PR #213676)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 3 06:54:33 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp,h -- clang/test/CodeGen/X86/aocl-fast-scalar-calls.c llvm/lib/Target/X86/X86GenScalarAmdFastCalls.cpp clang/include/clang/Basic/CodeGenOptions.h clang/lib/CodeGen/BackendUtil.cpp clang/lib/Driver/ToolChains/Clang.cpp clang/lib/Driver/ToolChains/CommonArgs.cpp llvm/include/llvm/Analysis/TargetLibraryInfo.h llvm/lib/Analysis/TargetLibraryInfo.cpp llvm/lib/Target/X86/X86.h llvm/lib/Target/X86/X86TargetMachine.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86GenScalarAmdFastCalls.cpp b/llvm/lib/Target/X86/X86GenScalarAmdFastCalls.cpp
index 85544a243..0a4b1b7b3 100644
--- a/llvm/lib/Target/X86/X86GenScalarAmdFastCalls.cpp
+++ b/llvm/lib/Target/X86/X86GenScalarAmdFastCalls.cpp
@@ -107,8 +107,8 @@ bool X86GenScalarAmdFastCalls::createScalarAOCLCall(MachineInstr *MI) const {
MI->getOperand(0).ChangeToES(LibScalarFnName.data(),
MI->getOperand(0).getTargetFlags());
- LLVM_DEBUG(dbgs() << "Successfully replaced with fastcall= " << LibScalarFnName
- << "\n";);
+ LLVM_DEBUG(dbgs() << "Successfully replaced with fastcall= "
+ << LibScalarFnName << "\n";);
ORE->emit([&]() {
return MachineOptimizationRemark(DEBUG_TYPE, "Passed", MI->getDebugLoc(),
``````````
</details>
https://github.com/llvm/llvm-project/pull/213676
More information about the cfe-commits
mailing list