| /llvm-project-15.0.7/mlir/include/mlir/ExecutionEngine/ |
| H A D | CRunnerUtils.h | 55 template <typename T, int Dim> 58 static_assert(detail::nextPowerOf2(sizeof(T[Dim])) == sizeof(T[Dim]), 65 T vector[Dim]; 70 template <typename T, int Dim> 73 static_assert(nextPowerOf2(sizeof(T[Dim])) > sizeof(T[Dim]), "size error"); 74 static_assert(nextPowerOf2(sizeof(T[Dim])) < 2 * sizeof(T[Dim]), 81 T vector[Dim]; 82 char padding[nextPowerOf2(sizeof(T[Dim])) - sizeof(T[Dim])]; 96 Vector<T, Dims...> vector[Dim]; 101 template <typename T, int Dim> [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SparseTensor/Utils/ |
| H A D | Merger.h | 24 enum Dim { kSparse, kDense, kSingle, kUndef }; enum 157 hasSparseOut(false), dims(t + 1, std::vector<Dim>(l, Dim::kUndef)) {} in Merger() 227 bool isDim(unsigned b, Dim d) const { return isDim(tensor(b), index(b), d); } in isDim() 235 bool isDim(unsigned t, unsigned i, Dim d) const { in isDim() 241 bool hasAnyDimOf(const BitVector &bits, Dim d) const; 250 void setDim(unsigned t, unsigned i, Dim d) { dims[t][i] = d; } in setDim() 299 std::vector<std::vector<Dim>> dims;
|
| /llvm-project-15.0.7/polly/utils/pyscop/ |
| H A D | isl.py | 181 class Dim(IslObject): class 186 return Dim(ptr = ptr) 423 ("get_dim", BSet, [BSet], Dim), 424 ("get_dim", Set, [Set], Dim), 425 ("get_dim", USet, [USet], Dim), 426 ("get_dim", BMap, [BMap], Dim), 427 ("get_dim", Map, [Map], Dim), 428 ("get_dim", UMap, [UMap], Dim) 512 isl.isl_set_get_dim.restype = Dim.from_ptr 532 isl.isl_map_get_dim.restype = Dim.from_ptr [all …]
|
| /llvm-project-15.0.7/polly/lib/Support/ |
| H A D | ISLTools.cpp | 238 unsigned NumDims = unsignedFromIslSize(Map.dim(Dim)); in shiftDim() 243 switch (Dim) { in shiftDim() 256 switch (Dim) { in shiftDim() 418 auto ShiftedZone = shiftDim(Zone, Dim, -1, -1); in convertZoneToTimepoints() 433 auto ShiftedZone = shiftDim(Zone, Dim, -1, -1); in convertZoneToTimepoints() 795 if (Dim >= Dims) { in recursiveExpand() 803 .project_out(isl::dim::set, Dim + 1, Dims - Dim - 1) in recursiveExpand() 804 .project_out(isl::dim::set, 0, Dim); in recursiveExpand() 806 recursiveExpand(BSet, Dim + 1, Expanded); in recursiveExpand() 810 foreachPoint(DimOnly, [&, Dim](isl::point P) { in recursiveExpand() [all …]
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/SparseTensor/ |
| H A D | MergerTest.cpp | 311 merger.setDim(t0, l0, Dim::kSparse); in MergerTest3T1L() 315 merger.setDim(t1, l0, Dim::kSparse); in MergerTest3T1L() 319 merger.setDim(t2, l0, Dim::kDense); in MergerTest3T1L() 334 merger.setDim(t0, l0, Dim::kSparse); in MergerTest4T1L() 338 merger.setDim(t1, l0, Dim::kSparse); in MergerTest4T1L() 342 merger.setDim(t2, l0, Dim::kSparse); in MergerTest4T1L() 346 merger.setDim(t3, l0, Dim::kDense); in MergerTest4T1L() 365 merger.setDim(t0, l0, Dim::kSparse); in MergerTest3T1LD() 369 merger.setDim(t1, l0, Dim::kDense); in MergerTest3T1LD() 373 merger.setDim(t2, l0, Dim::kDense); in MergerTest3T1LD()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstrInfo.h | 50 MIMGDim Dim; member 84 getImageDimIntrinsicByBaseOpcode(unsigned BaseOpcode, unsigned Dim);
|
| H A D | AMDGPUSubtarget.cpp | 429 static unsigned getReqdWorkGroupSize(const Function &Kernel, unsigned Dim) { in getReqdWorkGroupSize() argument 432 return mdconst::extract<ConstantInt>(Node->getOperand(Dim))->getZExtValue(); in getReqdWorkGroupSize() 458 unsigned Dim = UINT_MAX; in makeLIDRangeMetadata() local 465 Dim = 0; in makeLIDRangeMetadata() 472 Dim = 1; in makeLIDRangeMetadata() 479 Dim = 2; in makeLIDRangeMetadata() 485 if (Dim <= 3) { in makeLIDRangeMetadata() 486 unsigned ReqdSize = getReqdWorkGroupSize(*Kernel, Dim); in makeLIDRangeMetadata()
|
| H A D | MIMGInstructions.td | 79 let PrimaryKey = ["Dim"]; 373 Dim:$dim, UNorm:$unorm, CPol:$cpol, 386 Dim:$dim, UNorm:$unorm, CPol:$cpol, 398 Dim:$dim, UNorm:$unorm, CPol:$cpol, 411 Dim:$dim, UNorm:$unorm, CPol:$cpol, 556 Dim:$dim, UNorm:$unorm, CPol:$cpol, 582 Dim:$dim, UNorm:$unorm, CPol:$cpol, 742 Dim:$dim, UNorm:$unorm, CPol:$cpol, 772 Dim:$dim, UNorm:$unorm, CPol:$cpol, 1386 AMDGPUDimProps Dim = I.P.Dim; [all …]
|
| /llvm-project-15.0.7/polly/include/polly/Support/ |
| H A D | ISLTools.h | 259 isl::map shiftDim(isl::map Map, isl::dim Dim, int Pos, int Amount); 271 isl::union_map shiftDim(isl::union_map UMap, isl::dim Dim, int Pos, int Amount); 457 isl::union_map convertZoneToTimepoints(isl::union_map Zone, isl::dim Dim, 462 isl::map convertZoneToTimepoints(isl::map Zone, isl::dim Dim, bool InclStart,
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEnums.td | 29 def Dim : EnumOperand<"Dim">;
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.h | 163 get(Type elementType, Dim dim, 170 std::tuple<Type, Dim, ImageDepthInfo, ImageArrayedInfo, 177 get(std::tuple<Type, Dim, ImageDepthInfo, ImageArrayedInfo, 181 Dim getDim() const;
|
| H A D | SPIRVImageOps.td | 32 OpTypeImage must have a Dim of 2D, Cube, or Rect. The MS operand of the 106 Image must be an object whose type is OpTypeImage. Its Dim operand must 108 Dim is 1D, 2D, 3D, or Cube, it must also have either an MS of 1 or a
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | Sparsification.cpp | 149 return Dim::kSparse; in toDim() 151 return Dim::kSingle; in toDim() 153 return Dim::kDense; in toDim() 165 if (!merger.isDim(tensor, idx, Dim::kUndef)) in findAffine() 291 if (merger.isDim(tensor, i, Dim::kSparse)) in computeIterationGraph() 339 if (merger.isDim(tensor, i, Dim::kSparse)) { in isAdmissableTensorExp() 515 if (merger.isDim(tensor, idx, Dim::kSparse)) { in genBuffers() 1095 if (merger.isDim(b, Dim::kSparse)) { in genInit() 1199 bool isSparse = merger.isDim(fb, Dim::kSparse); in genFor() 1383 merger.isDim(b, Dim::kDense)) { in genLocals() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | TypeSize.h | 117 ScalarTy getValue(unsigned Dim) const { return Coefficients[Dim]; } in getValue() argument 232 ScalarTy getValue(unsigned Dim) const { 233 return Dim == UnivariateDim ? Value : 0;
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | LinearPolyBaseTest.cpp | 97 Univariate3D(ScalarTy x, unsigned Dim) : Univariate3DBase(x, Dim) {} in Univariate3D() argument
|
| /llvm-project-15.0.7/mlir/test/Dialect/SPIRV/IR/ |
| H A D | image-ops.mlir | 48 // expected-error @+1 {{the Dim operand of the underlying image type must be 2D, Cube, or Rect}} 88 …// expected-error @+1 {{the Dim operand of the image type must be 1D, 2D, 3D, Buffer, Cube, or Re… 96 …// expected-error @+1 {{if Dim is 1D, 2D, 3D, or Cube, it must also have either an MS of 1 or a S…
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/MCTargetDesc/ |
| H A D | SPIRVBaseInfo.cpp | 307 StringRef getDimName(Dim dim) { in getDimName() 309 CASE_SUF(Dim, DIM, 1D) in getDimName() 310 CASE_SUF(Dim, DIM, 2D) in getDimName() 311 CASE_SUF(Dim, DIM, 3D) in getDimName() 312 CASE_SUF(Dim, DIM, Cube) in getDimName() 313 CASE_SUF(Dim, DIM, Rect) in getDimName() 314 CASE_SUF(Dim, DIM, Buffer) in getDimName() 315 CASE_SUF(Dim, DIM, SubpassData) in getDimName()
|
| H A D | SPIRVBaseInfo.h | 279 enum class Dim : uint32_t { enum 288 StringRef getDimName(Dim e);
|
| /llvm-project-15.0.7/polly/include/polly/ |
| H A D | ScopInfo.h | 292 const SCEV *getDimensionSize(unsigned Dim) const { in getDimensionSize() argument 293 assert(Dim < getNumberOfDimensions() && "Invalid dimension"); in getDimensionSize() 294 return DimensionSizes[Dim]; in getDimensionSize() 302 isl::pw_aff getDimensionSizePw(unsigned Dim) const { in getDimensionSizePw() argument 303 assert(Dim < getNumberOfDimensions() && "Invalid dimension"); in getDimensionSizePw() 304 return DimensionSizesPw[Dim]; in getDimensionSizePw() 894 const SCEV *getSubscript(unsigned Dim) const { return Subscripts[Dim]; } in getSubscript() argument
|
| /llvm-project-15.0.7/polly/lib/Transform/ |
| H A D | MatmulOptimizer.cpp | 727 unsigned Dim = unsignedFromIslSize(MapOldIndVar.range_tuple_dim()); in optimizePackedB() local 728 assert(Dim >= 2); in optimizePackedB() 730 isl::map ExtMap = MapOldIndVar.project_out(isl::dim::out, 2, Dim - 2); in optimizePackedB() 871 unsigned Dim = unsignedFromIslSize(MapOldIndVar.range_tuple_dim()); in getInductionVariablesSubstitution() local 872 if (Dim > 9u) in getInductionVariablesSubstitution() 873 return MapOldIndVar.project_out(isl::dim::out, 0, Dim - 9); in getInductionVariablesSubstitution()
|
| /llvm-project-15.0.7/polly/lib/Analysis/ |
| H A D | ScopBuilder.cpp | 201 if (u != Dim) in createNextIterationMap() 207 C = C.set_coefficient_si(isl::dim::in, Dim, 1); in createNextIterationMap() 208 C = C.set_coefficient_si(isl::dim::out, Dim, -1); in createNextIterationMap() 235 assert(NumDimsS >= Dim + 1); in partitionSetParts() 236 OnlyDimS = OnlyDimS.project_out(isl::dim::set, Dim + 1, NumDimsS - Dim - 1); in partitionSetParts() 240 OnlyDimS = OnlyDimS.insert_dims(isl::dim::param, 0, Dim); in partitionSetParts() 242 for (unsigned u = 0; u < Dim; u++) { in partitionSetParts() 255 BoundedParts.insert_dims(isl::dim::set, Dim + 1, NumDimsS - Dim - 1); in partitionSetParts() 1164 unsigned Dim = unsignedFromIslSize(S.tuple_dim()); in mapToDimension() local 1165 assert(Dim >= N); in mapToDimension() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 267 constexpr unsigned getNumBits<Dim>() { in getNumBits() 305 using KeyTy = std::tuple<Type, Dim, ImageDepthInfo, ImageArrayedInfo, 325 Dim dim : getNumBits<Dim>(); 334 ImageType::get(std::tuple<Type, Dim, ImageDepthInfo, ImageArrayedInfo, in get() argument 342 Dim ImageType::getDim() const { return getImpl()->dim; } in getDim()
|
| H A D | SPIRVOps.cpp | 4269 if (imageDim != spirv::Dim::Dim2D && imageDim != spirv::Dim::Cube && in verify() 4320 case spirv::Dim::Dim1D: in verify() 4321 case spirv::Dim::Dim2D: in verify() 4322 case spirv::Dim::Dim3D: in verify() 4323 case spirv::Dim::Cube: in verify() 4332 case spirv::Dim::Rect: in verify() 4341 case spirv::Dim::Dim1D: in verify() 4345 case spirv::Dim::Dim2D: in verify() 4346 case spirv::Dim::Cube: in verify() 4347 case spirv::Dim::Rect: in verify() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ComputeDependence.cpp | 341 if (auto *Dim = E->getDimensionExpression()) in computeDependence() local 342 D |= Dim->getDependence(); in computeDependence() 432 for (Expr *Dim: E->getDimensions()) in computeDependence() 433 if (Dim) in computeDependence() 434 D |= turnValueToTypeDependence(Dim->getDependence()); in computeDependence()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | member-function-template.cpp | 80 template<int Dim> struct X {
|