ROCm / ROCm-OpenCL-Driver

ROCm OpenCL Compiler Tool Driver
MIT License
24 stars 9 forks source link

[in-process] [#22] [fix] Setting options to its default values. #27

Closed emankov closed 7 years ago

emankov commented 7 years ago

Feature in LLVM: https://reviews.llvm.org/rL311887

[Support][CommandLine] Add cl::Option::setDefault()

Add abstract virtual method setDefault() to class Option and implement it in its inheritors in order to be able to set all the options to its default values in user's code without actually knowing all these options.

Testing: ocl conformance 1.2 api, atomics, basic, buffers, commonfns, compiler, vec_align (with AMD_OCL_IN_PROCESS=1)