Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/OpenMPClause.h
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,779 Lines • ▼ Show 20 Lines | explicit OMPMapClause(ArrayRef<OpenMPMapModifierKind> MapModifiers, | ||||
DeclarationNameInfo MapperIdInfo, | DeclarationNameInfo MapperIdInfo, | ||||
OpenMPMapClauseKind MapType, bool MapTypeIsImplicit, | OpenMPMapClauseKind MapType, bool MapTypeIsImplicit, | ||||
SourceLocation MapLoc, const OMPVarListLocTy &Locs, | SourceLocation MapLoc, const OMPVarListLocTy &Locs, | ||||
const OMPMappableExprListSizeTy &Sizes) | const OMPMappableExprListSizeTy &Sizes) | ||||
: OMPMappableExprListClause(llvm::omp::OMPC_map, Locs, Sizes, | : OMPMappableExprListClause(llvm::omp::OMPC_map, Locs, Sizes, | ||||
/*SupportsMapper=*/true, &MapperQualifierLoc, | /*SupportsMapper=*/true, &MapperQualifierLoc, | ||||
&MapperIdInfo), | &MapperIdInfo), | ||||
MapType(MapType), MapTypeIsImplicit(MapTypeIsImplicit), MapLoc(MapLoc) { | MapType(MapType), MapTypeIsImplicit(MapTypeIsImplicit), MapLoc(MapLoc) { | ||||
assert(llvm::array_lengthof(MapTypeModifiers) == MapModifiers.size() && | assert(std::size(MapTypeModifiers) == MapModifiers.size() && | ||||
"Unexpected number of map type modifiers."); | "Unexpected number of map type modifiers."); | ||||
llvm::copy(MapModifiers, std::begin(MapTypeModifiers)); | llvm::copy(MapModifiers, std::begin(MapTypeModifiers)); | ||||
assert(llvm::array_lengthof(MapTypeModifiersLoc) == | assert(std::size(MapTypeModifiersLoc) == MapModifiersLoc.size() && | ||||
MapModifiersLoc.size() && | |||||
"Unexpected number of map type modifier locations."); | "Unexpected number of map type modifier locations."); | ||||
llvm::copy(MapModifiersLoc, std::begin(MapTypeModifiersLoc)); | llvm::copy(MapModifiersLoc, std::begin(MapTypeModifiersLoc)); | ||||
} | } | ||||
/// Build an empty clause. | /// Build an empty clause. | ||||
/// | /// | ||||
/// \param Sizes All required sizes to build a mappable clause. It includes 1) | /// \param Sizes All required sizes to build a mappable clause. It includes 1) | ||||
/// NumVars: number of expressions listed in this clause; 2) | /// NumVars: number of expressions listed in this clause; 2) | ||||
▲ Show 20 Lines • Show All 900 Lines • ▼ Show 20 Lines | explicit OMPToClause(ArrayRef<OpenMPMotionModifierKind> TheMotionModifiers, | ||||
ArrayRef<SourceLocation> TheMotionModifiersLoc, | ArrayRef<SourceLocation> TheMotionModifiersLoc, | ||||
NestedNameSpecifierLoc MapperQualifierLoc, | NestedNameSpecifierLoc MapperQualifierLoc, | ||||
DeclarationNameInfo MapperIdInfo, | DeclarationNameInfo MapperIdInfo, | ||||
const OMPVarListLocTy &Locs, | const OMPVarListLocTy &Locs, | ||||
const OMPMappableExprListSizeTy &Sizes) | const OMPMappableExprListSizeTy &Sizes) | ||||
: OMPMappableExprListClause(llvm::omp::OMPC_to, Locs, Sizes, | : OMPMappableExprListClause(llvm::omp::OMPC_to, Locs, Sizes, | ||||
/*SupportsMapper=*/true, &MapperQualifierLoc, | /*SupportsMapper=*/true, &MapperQualifierLoc, | ||||
&MapperIdInfo) { | &MapperIdInfo) { | ||||
assert(llvm::array_lengthof(MotionModifiers) == TheMotionModifiers.size() && | assert(std::size(MotionModifiers) == TheMotionModifiers.size() && | ||||
"Unexpected number of motion modifiers."); | "Unexpected number of motion modifiers."); | ||||
llvm::copy(TheMotionModifiers, std::begin(MotionModifiers)); | llvm::copy(TheMotionModifiers, std::begin(MotionModifiers)); | ||||
assert(llvm::array_lengthof(MotionModifiersLoc) == | assert(std::size(MotionModifiersLoc) == TheMotionModifiersLoc.size() && | ||||
TheMotionModifiersLoc.size() && | |||||
"Unexpected number of motion modifier locations."); | "Unexpected number of motion modifier locations."); | ||||
llvm::copy(TheMotionModifiersLoc, std::begin(MotionModifiersLoc)); | llvm::copy(TheMotionModifiersLoc, std::begin(MotionModifiersLoc)); | ||||
} | } | ||||
/// Build an empty clause. | /// Build an empty clause. | ||||
/// | /// | ||||
/// \param Sizes All required sizes to build a mappable clause. It includes 1) | /// \param Sizes All required sizes to build a mappable clause. It includes 1) | ||||
/// NumVars: number of expressions listed in this clause; 2) | /// NumVars: number of expressions listed in this clause; 2) | ||||
▲ Show 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | explicit OMPFromClause(ArrayRef<OpenMPMotionModifierKind> TheMotionModifiers, | ||||
ArrayRef<SourceLocation> TheMotionModifiersLoc, | ArrayRef<SourceLocation> TheMotionModifiersLoc, | ||||
NestedNameSpecifierLoc MapperQualifierLoc, | NestedNameSpecifierLoc MapperQualifierLoc, | ||||
DeclarationNameInfo MapperIdInfo, | DeclarationNameInfo MapperIdInfo, | ||||
const OMPVarListLocTy &Locs, | const OMPVarListLocTy &Locs, | ||||
const OMPMappableExprListSizeTy &Sizes) | const OMPMappableExprListSizeTy &Sizes) | ||||
: OMPMappableExprListClause(llvm::omp::OMPC_from, Locs, Sizes, | : OMPMappableExprListClause(llvm::omp::OMPC_from, Locs, Sizes, | ||||
/*SupportsMapper=*/true, &MapperQualifierLoc, | /*SupportsMapper=*/true, &MapperQualifierLoc, | ||||
&MapperIdInfo) { | &MapperIdInfo) { | ||||
assert(llvm::array_lengthof(MotionModifiers) == TheMotionModifiers.size() && | assert(std::size(MotionModifiers) == TheMotionModifiers.size() && | ||||
"Unexpected number of motion modifiers."); | "Unexpected number of motion modifiers."); | ||||
llvm::copy(TheMotionModifiers, std::begin(MotionModifiers)); | llvm::copy(TheMotionModifiers, std::begin(MotionModifiers)); | ||||
assert(llvm::array_lengthof(MotionModifiersLoc) == | assert(std::size(MotionModifiersLoc) == TheMotionModifiersLoc.size() && | ||||
TheMotionModifiersLoc.size() && | |||||
"Unexpected number of motion modifier locations."); | "Unexpected number of motion modifier locations."); | ||||
llvm::copy(TheMotionModifiersLoc, std::begin(MotionModifiersLoc)); | llvm::copy(TheMotionModifiersLoc, std::begin(MotionModifiersLoc)); | ||||
} | } | ||||
/// Build an empty clause. | /// Build an empty clause. | ||||
/// | /// | ||||
/// \param Sizes All required sizes to build a mappable clause. It includes 1) | /// \param Sizes All required sizes to build a mappable clause. It includes 1) | ||||
/// NumVars: number of expressions listed in this clause; 2) | /// NumVars: number of expressions listed in this clause; 2) | ||||
▲ Show 20 Lines • Show All 2,109 Lines • Show Last 20 Lines |