Home
last modified time | relevance | path

Searched refs:ArrayTy (Results 1 – 16 of 16) sorted by relevance

/external/clang/lib/StaticAnalyzer/Checkers/
DCastSizeChecker.cpp65 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize() local
68 if (ArrayTy->getSize() == 1 && TypeSize > FlexSize) in evenFlexibleArraySize()
70 else if (ArrayTy->getSize() != 0) in evenFlexibleArraySize()
/external/llvm/unittests/IR/
DConstantsTest.cpp304 ArrayType *ArrayTy = ArrayType::get(IntTy, 2); in TEST() local
307 Constant *A01 = ConstantArray::get(ArrayTy, A01Vals); in TEST()
313 Constant *A0G = ConstantArray::get(ArrayTy, A0GVals); in TEST()
317 new GlobalVariable(*M, ArrayTy, false, GlobalValue::ExternalLinkage, A0G); in TEST()
399 ArrayType *ArrayTy = ArrayType::get(T, 2); in TEST() local
401 Constant *CDV = ConstantArray::get(ArrayTy, Vals); in TEST()
408 ArrayType *ArrayTy = ArrayType::get(T, 2); in TEST() local
410 Constant *CDV = ConstantArray::get(ArrayTy, Vals); in TEST()
/external/clang/test/Layout/
Dms-x86-basic-layout.cpp804 typedef A4 ArrayTy[2]; typedef
805 ArrayTy InlineElts[2];
/external/llvm/lib/Target/AMDGPU/
DAMDGPUPromoteAlloca.cpp104 static VectorType *arrayTypeToVecType(Type *ArrayTy) { in arrayTypeToVecType() argument
105 return VectorType::get(ArrayTy->getArrayElementType(), in arrayTypeToVecType()
106 ArrayTy->getArrayNumElements()); in arrayTypeToVecType()
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp205 auto ArrayTy = OriginalType->getAsArrayTypeUnsafe(); in EmitOMPAggregateAssign() local
206 auto NumElements = emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateAssign()
269 auto ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateInit() local
270 auto NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, DestAddr); in EmitOMPAggregateInit()
DCGObjCGNU.cpp227 llvm::ArrayType *ArrayTy = llvm::ArrayType::get(Ty, V.size()); in MakeGlobalArray() local
228 return MakeGlobal(ArrayTy, V, Align, Name, linkage); in MakeGlobalArray()
DCGOpenMPRuntime.cpp2672 auto ArrayTy = Type->getAsArrayTypeUnsafe(); in EmitOMPAggregateReduction() local
2673 auto NumElements = CGF.emitArrayLength(ArrayTy, ElementTy, LHSAddr); in EmitOMPAggregateReduction()
DCodeGenFunction.h1864 const ConstantArrayType *ArrayTy,
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c423 CAMLprim value llvm_array_length(LLVMTypeRef ArrayTy) { in llvm_array_length() argument
424 return Val_int(LLVMGetArrayLength(ArrayTy)); in llvm_array_length()
/external/clang/lib/Sema/
DSemaStmt.cpp2271 QualType ArrayTy = PVD->getOriginalType(); in BuildCXXForRangeStmt() local
2273 if (PointerTy->isPointerType() && ArrayTy->isArrayType()) { in BuildCXXForRangeStmt()
2275 << RangeLoc << PVD << ArrayTy << PointerTy; in BuildCXXForRangeStmt()
DSemaDeclCXX.cpp9861 const ConstantArrayType *ArrayTy = S.Context.getAsConstantArrayType(T); in buildSingleCopyAssignRecursively() local
9862 if (!ArrayTy) { in buildSingleCopyAssignRecursively()
9917 buildSingleCopyAssignRecursively(S, Loc, ArrayTy->getElementType(), in buildSingleCopyAssignRecursively()
9926 = ArrayTy->getSize().zextOrTrunc(S.Context.getTypeSize(SizeType)); in buildSingleCopyAssignRecursively()
DSemaChecking.cpp8561 const ConstantArrayType *ArrayTy = in CheckArrayAccess() local
8563 if (!ArrayTy) in CheckArrayAccess()
8579 llvm::APInt size = ArrayTy->getSize(); in CheckArrayAccess()
/external/llvm/include/llvm-c/
DCore.h966 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy);
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp4266 ArrayType *ArrayTy = ArrayType::get(ValueType, TableSize); in SwitchLookupTable() local
4267 Constant *Initializer = ConstantArray::get(ArrayTy, TableContents); in SwitchLookupTable()
4269 Array = new GlobalVariable(M, ArrayTy, /*constant=*/ true, in SwitchLookupTable()
/external/llvm/lib/IR/
DCore.cpp504 unsigned LLVMGetArrayLength(LLVMTypeRef ArrayTy) { in LLVMGetArrayLength() argument
505 return unwrap<ArrayType>(ArrayTy)->getNumElements(); in LLVMGetArrayLength()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp1371 if (ArrayType *ArrayTy = dyn_cast<ArrayType>(ElementTy)) { in getNaturalGEPWithType() local
1372 ElementTy = ArrayTy->getElementType(); in getNaturalGEPWithType()