[PATCH] D37386: [AMDGPU] Implement infrastructure to set options in AMDGPUToolChain
Andrey Kasaurov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 1 10:40:35 PDT 2017
kasaurov created this revision.
Herald added subscribers: t-tye, Anastasia, tpr, dstuttard, nhaehnle, wdng, kzhuravl.
In current OpenCL implementation some options are set in OpenCL RT/Driver, which causes discrepancy between online and offline paths.
Implement infrastructure to move options from OpenCL RT/Driver to AMDGPUToolChain using overloaded TranslateArgs() method.
Create map for default options values, as Options.td doesn't support default values (in contrast with OPTIONS.def).
Add two driver options: -On and -mNN (like -O3, -m64).
Some minor formatting changes to follow the clang-format style.
https://reviews.llvm.org/D37386
Files:
lib/Driver/ToolChains/AMDGPU.cpp
lib/Driver/ToolChains/AMDGPU.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37386.113549.patch
Type: text/x-patch
Size: 3498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170901/bd5a6ad5/attachment.bin>
More information about the cfe-commits
mailing list