[PATCH] D105981: [AMDGPU][OpenMP] Support linking of math libraries

Pushpinder Singh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 14 07:55:08 PDT 2021


pdhaliwal added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp:252
+    bool Wave64 = isWave64(DriverArgs, Kind);
+
+    // TODO: There are way too many flags that change this. Do we need to check
----------------
JonChesterfield wrote:
> I recognise this comment. Is this a bunch of logic that can be moved into the base class and then called from here and hip?
This is copied (after removing stuff related to opencl) from https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/AMDGPU.cpp#L841 
I wanted to make call to `ROCMToolChain::addClangTargetOptions`, but there is some extra logic in it which is irrelevant to OpenMP. I will move the library linking into a separate common method as you suggest.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105981/new/

https://reviews.llvm.org/D105981



More information about the cfe-commits mailing list