[PATCH] D29339: [OpenMP] Add support for auxiliary triple specification
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 1 01:08:46 PST 2017
ABataev added inline comments.
================
Comment at: lib/Frontend/CompilerInstance.cpp:914-915
+ // Create TargetInfo for the other side of CUDA and OpenMP compilation.
+ if ((getLangOpts().CUDA && !getFrontendOpts().AuxTriple.empty()) ||
+ (getLangOpts().OpenMPIsDevice && !getFrontendOpts().AuxTriple.empty())) {
auto TO = std::make_shared<TargetOptions>();
----------------
It's better to check `!getFrontendOpts().AuxTriple.empty()` only once in this condition
Repository:
rL LLVM
https://reviews.llvm.org/D29339
More information about the cfe-commits
mailing list