Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Driver/ToolChains/Clang.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 7,855 Lines • ▼ Show 20 Lines | if (const auto *OA = dyn_cast<OffloadAction>(CurDep)) { | ||||
CurKind = A->getOffloadingDeviceKind(); | CurKind = A->getOffloadingDeviceKind(); | ||||
CurTC = TC; | CurTC = TC; | ||||
}); | }); | ||||
} | } | ||||
Triples += Action::GetOffloadKindName(CurKind); | Triples += Action::GetOffloadKindName(CurKind); | ||||
Triples += '-'; | Triples += '-'; | ||||
Triples += CurTC->getTriple().normalize(); | Triples += CurTC->getTriple().normalize(); | ||||
if ((CurKind == Action::OFK_HIP || CurKind == Action::OFK_Cuda) && | if ((CurKind == Action::OFK_HIP || CurKind == Action::OFK_Cuda) && | ||||
CurDep->getOffloadingArch()) { | !StringRef(CurDep->getOffloadingArch()).empty()) { | ||||
Triples += '-'; | Triples += '-'; | ||||
Triples += CurDep->getOffloadingArch(); | Triples += CurDep->getOffloadingArch(); | ||||
} | } | ||||
// TODO: Replace parsing of -march flag. Can be done by storing GPUArch | // TODO: Replace parsing of -march flag. Can be done by storing GPUArch | ||||
// with each toolchain. | // with each toolchain. | ||||
StringRef GPUArchName; | StringRef GPUArchName; | ||||
if (CurKind == Action::OFK_OpenMP) { | if (CurKind == Action::OFK_OpenMP) { | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |