/external/llvm-project/mlir/examples/toy/Ch7/mlir/ |
D | Dialect.cpp | 431 StructTypeStorage(llvm::ArrayRef<mlir::Type> elementTypes) in StructTypeStorage() 432 : elementTypes(elementTypes) {} in StructTypeStorage() 437 bool operator==(const KeyTy &key) const { return key == elementTypes; } in operator ==() 452 static KeyTy getKey(llvm::ArrayRef<mlir::Type> elementTypes) { in getKey() 453 return KeyTy(elementTypes); in getKey() 463 llvm::ArrayRef<mlir::Type> elementTypes = allocator.copyInto(key); in construct() local 467 StructTypeStorage(elementTypes); in construct() 471 llvm::ArrayRef<mlir::Type> elementTypes; member 479 StructType StructType::get(llvm::ArrayRef<mlir::Type> elementTypes) { in get() argument 480 assert(!elementTypes.empty() && "expected at least 1 element type"); in get() [all …]
|
D | MLIRGen.cpp | 136 std::vector<mlir::Type> elementTypes; in mlirGen() local 137 elementTypes.reserve(variables.size()); in mlirGen() 151 elementTypes.push_back(type); in mlirGen() 154 structMap.try_emplace(str.getName(), StructType::get(elementTypes), &str); in mlirGen()
|
/external/llvm-project/mlir/docs/Tutorials/Toy/ |
D | Ch-7.md | 96 StructTypeStorage(llvm::ArrayRef<mlir::Type> elementTypes) 97 : elementTypes(elementTypes) {} 102 bool operator==(const KeyTy &key) const { return key == elementTypes; } 117 static KeyTy getKey(llvm::ArrayRef<mlir::Type> elementTypes) { 118 return KeyTy(elementTypes); 128 llvm::ArrayRef<mlir::Type> elementTypes = allocator.copyInto(key); 132 StructTypeStorage(elementTypes); 136 llvm::ArrayRef<mlir::Type> elementTypes; 159 static StructType get(llvm::ArrayRef<mlir::Type> elementTypes) { 160 assert(!elementTypes.empty() && "expected at least 1 element type"); [all …]
|
/external/llvm-project/mlir/unittests/Dialect/SPIRV/ |
D | SerializationTest.cpp | 64 llvm::SmallVector<Type, 1> elementTypes{opBuilder.getF32Type()}; in getFloatStructType() local 66 auto structType = spirv::StructType::get(elementTypes, offsetInfo); in getFloatStructType()
|
/external/clang/lib/CodeGen/ |
D | CGBlocks.cpp | 299 SmallVectorImpl<llvm::Type*> &elementTypes) { in initializeForBlockHeader() argument 309 assert(elementTypes.empty()); in initializeForBlockHeader() 310 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 311 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader() 312 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader() 313 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 314 elementTypes.push_back(CGM.getBlockDescriptorType()); in initializeForBlockHeader() 316 assert(elementTypes.size() == BlockHeaderSize); in initializeForBlockHeader() 326 SmallVector<llvm::Type*, 8> elementTypes; in computeBlockInfo() local 327 initializeForBlockHeader(CGM, info, elementTypes); in computeBlockInfo() [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGBlocks.cpp | 449 SmallVectorImpl<llvm::Type*> &elementTypes) { in initializeForBlockHeader() argument 451 assert(elementTypes.empty()); in initializeForBlockHeader() 464 elementTypes.push_back(CGM.IntTy); /* total size */ in initializeForBlockHeader() 465 elementTypes.push_back(CGM.IntTy); /* align */ in initializeForBlockHeader() 466 elementTypes.push_back( in initializeForBlockHeader() 482 elementTypes.push_back(I); in initializeForBlockHeader() 495 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() 496 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader() 497 elementTypes.push_back(CGM.IntTy); in initializeForBlockHeader() 498 elementTypes.push_back(CGM.VoidPtrTy); in initializeForBlockHeader() [all …]
|
/external/llvm-project/mlir/examples/toy/Ch7/include/toy/ |
D | Dialect.h | 85 static StructType get(llvm::ArrayRef<mlir::Type> elementTypes);
|
/external/llvm-project/mlir/lib/IR/ |
D | Builders.cpp | 74 TupleType Builder::getTupleType(TypeRange elementTypes) { in getTupleType() argument 75 return TupleType::get(elementTypes, context); in getTupleType()
|
D | BuiltinTypes.cpp | 656 TupleType TupleType::get(TypeRange elementTypes, MLIRContext *context) { in get() argument 657 return Base::get(context, elementTypes); in get()
|
/external/llvm/bindings/go/llvm/ |
D | ir.go | 547 func (c Context) StructType(elementTypes []Type, packed bool) (t Type) { 550 if len(elementTypes) > 0 { 551 pt = llvmTypeRefPtr(&elementTypes[0]) 552 ptlen = C.unsigned(len(elementTypes)) 561 func StructType(elementTypes []Type, packed bool) (t Type) { 564 if len(elementTypes) > 0 { 565 pt = llvmTypeRefPtr(&elementTypes[0]) 566 ptlen = C.unsigned(len(elementTypes)) 583 func (t Type) StructSetBody(elementTypes []Type, packed bool) { 586 if len(elementTypes) > 0 { [all …]
|
/external/llvm-project/llvm/bindings/go/llvm/ |
D | ir.go | 612 func (c Context) StructType(elementTypes []Type, packed bool) (t Type) { 615 if len(elementTypes) > 0 { 616 pt = llvmTypeRefPtr(&elementTypes[0]) 617 ptlen = C.unsigned(len(elementTypes)) 626 func StructType(elementTypes []Type, packed bool) (t Type) { 629 if len(elementTypes) > 0 { 630 pt = llvmTypeRefPtr(&elementTypes[0]) 631 ptlen = C.unsigned(len(elementTypes)) 648 func (t Type) StructSetBody(elementTypes []Type, packed bool) { 651 if len(elementTypes) > 0 { [all …]
|
/external/llvm-project/mlir/include/mlir/IR/ |
D | Builders.h | 78 TupleType getTupleType(TypeRange elementTypes);
|
D | BuiltinTypes.h | 681 static TupleType get(TypeRange elementTypes, MLIRContext *context);
|
/external/python/cpython3/Modules/expat/ |
D | xmlparse.c | 338 HASH_TABLE elementTypes; member 3053 = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, tagNamePtr->str, 0); in storeAtts() 3058 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts() 6062 hashTableInit(&(p->elementTypes), ms); in dtdCreate() 6089 hashTableIterInit(&iter, &(p->elementTypes)); in dtdReset() 6102 hashTableClear(&(p->elementTypes)); in dtdReset() 6130 hashTableIterInit(&iter, &(p->elementTypes)); in dtdDestroy() 6142 hashTableDestroy(&(p->elementTypes)); in dtdDestroy() 6212 hashTableIterInit(&iter, &(oldDtd->elementTypes)); in dtdCopy() 6224 newE = (ELEMENT_TYPE *)lookup(oldParser, &(newDtd->elementTypes), name, in dtdCopy() [all …]
|
/external/expat/lib/ |
D | xmlparse.c | 339 HASH_TABLE elementTypes; member 3074 = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, tagNamePtr->str, 0); in storeAtts() 3079 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts() 6083 hashTableInit(&(p->elementTypes), ms); in dtdCreate() 6110 hashTableIterInit(&iter, &(p->elementTypes)); in dtdReset() 6123 hashTableClear(&(p->elementTypes)); in dtdReset() 6151 hashTableIterInit(&iter, &(p->elementTypes)); in dtdDestroy() 6163 hashTableDestroy(&(p->elementTypes)); in dtdDestroy() 6233 hashTableIterInit(&iter, &(oldDtd->elementTypes)); in dtdCopy() 6245 newE = (ELEMENT_TYPE *)lookup(oldParser, &(newDtd->elementTypes), name, in dtdCopy() [all …]
|
/external/python/cpython2/Modules/expat/ |
D | xmlparse.c | 347 HASH_TABLE elementTypes; member 3192 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, tagNamePtr->str,0); in storeAtts() 3197 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts() 6343 hashTableInit(&(p->elementTypes), ms); in dtdCreate() 6371 hashTableIterInit(&iter, &(p->elementTypes)); in dtdReset() 6384 hashTableClear(&(p->elementTypes)); in dtdReset() 6413 hashTableIterInit(&iter, &(p->elementTypes)); in dtdDestroy() 6425 hashTableDestroy(&(p->elementTypes)); in dtdDestroy() 6495 hashTableIterInit(&iter, &(oldDtd->elementTypes)); in dtdCopy() 6507 newE = (ELEMENT_TYPE *)lookup(oldParser, &(newDtd->elementTypes), name, in dtdCopy() [all …]
|
/external/llvm-project/mlir/lib/Dialect/SPIRV/ |
D | SPIRVOps.cpp | 1303 SmallVector<Type, 4> elementTypes; in parseCompositeConstructOp() local 1304 elementTypes.reserve(operands.size()); in parseCompositeConstructOp() 1306 elementTypes.push_back(cType.getElementType(index)); in parseCompositeConstructOp() 1309 return parser.resolveOperands(operands, elementTypes, loc, state.operands); in parseCompositeConstructOp()
|