Home
last modified time | relevance | path

Searched refs:elemTy (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/AST/
H A DAbstractBasicWriter.h178 QualType elemTy = lvaluePath.getType(); in writeLValuePathSerializationHelper() local
179 asImpl().writeQualType(elemTy); in writeLValuePathSerializationHelper()
183 if (elemTy->getAs<RecordType>()) { in writeLValuePathSerializationHelper()
188 elemTy = ctx.getRecordType(recordDecl); in writeLValuePathSerializationHelper()
192 elemTy = valueDecl->getType(); in writeLValuePathSerializationHelper()
196 elemTy = ctx.getAsArrayType(elemTy)->getElementType(); in writeLValuePathSerializationHelper()
H A DAbstractBasicReader.h193 auto elemTy = asImpl().readQualType(); in readLValuePathSerializationHelper() local
196 if (elemTy->template getAs<RecordType>()) { in readLValuePathSerializationHelper()
200 elemTy = getASTContext().getRecordType(recordDecl); in readLValuePathSerializationHelper()
202 elemTy = cast<ValueDecl>(decl)->getType(); in readLValuePathSerializationHelper()
206 elemTy = getASTContext().getAsArrayType(elemTy)->getElementType(); in readLValuePathSerializationHelper()
211 return APValue::LValuePathSerializationHelper(path, elemTy); in readLValuePathSerializationHelper()
H A DPropertiesBase.td452 QualType elemTy;
455 elemTy = lvalueBase.getTypeInfoType();
457 elemTy = expr->getType();
459 elemTy = lvalueBase.get<const ValueDecl *>()->getType();
513 APValue::LValuePathSerializationHelper(node.getLValuePath(), elemTy)
519 QualType elemTy;
524 elemTy = base.getTypeInfoType();
528 elemTy = base.get<const Expr *>()->getType();
532 elemTy = base.get<const ValueDecl *>()->getType();
545 assert(lvaluePath->getType() == elemTy && "Unexpected type reference!");
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp210 Type elemTy = getType().cast<LLVM::LLVMPointerType>().getElementType(); in print() local
211 if (!elemTy) in print()
212 elemTy = *getElemType(); in print()
217 p << ' ' << getArraySize() << " x " << elemTy; in print()
816 Optional<Type> elemTy = in parse() local
818 if (!elemTy) in parse()
820 if (*elemTy) { in parse()
821 result.addTypes(*elemTy); in parse()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDecl.cpp419 llvm::Type *elemTy = ConvertTypeForMem(D.getType()); in EmitStaticVarDecl() local
420 setAddrOfLocalVar(&D, Address(addr, elemTy, alignment)); in EmitStaticVarDecl()
473 LocalDeclMap.find(&D)->second = Address(castedAddr, elemTy, alignment); in EmitStaticVarDecl()
2291 llvm::Type *elemTy = CGF.ConvertTypeForMem(type); in emitPartialArrayDestroy() local
2307 elemTy, begin, gepIndices, "pad.arraybegin"); in emitPartialArrayDestroy()
2309 elemTy, end, gepIndices, "pad.arrayend"); in emitPartialArrayDestroy()
H A DCGExprScalar.cpp2649 llvm::Type *elemTy = CGF.ConvertTypeForMem(vla->getElementType()); in EmitScalarPrePostIncDec() local
2651 value = Builder.CreateGEP(elemTy, value, numElts, "vla.inc"); in EmitScalarPrePostIncDec()
2654 elemTy, value, numElts, /*SignedIndices=*/false, isSubtraction, in EmitScalarPrePostIncDec()
2674 llvm::Type *elemTy = CGF.ConvertTypeForMem(type); in EmitScalarPrePostIncDec() local
2676 value = Builder.CreateGEP(elemTy, value, amt, "incdec.ptr"); in EmitScalarPrePostIncDec()
2679 elemTy, value, amt, /*SignedIndices=*/false, isSubtraction, in EmitScalarPrePostIncDec()
3527 llvm::Type *elemTy = CGF.ConvertTypeForMem(vla->getElementType()); in emitPointerArithmetic() local
3530 pointer = CGF.Builder.CreateGEP(elemTy, pointer, index, "add.ptr"); in emitPointerArithmetic()
3549 llvm::Type *elemTy = CGF.ConvertTypeForMem(elementType); in emitPointerArithmetic() local
3551 return CGF.Builder.CreateGEP(elemTy, pointer, index, "add.ptr"); in emitPointerArithmetic()
[all …]