Home
last modified time | relevance | path

Searched refs:array_lengthof (Results 1 – 25 of 76) sorted by relevance

1234

/external/clang/test/SemaTemplate/
Dinstantiate-init.cpp81 …integral_c<N> array_lengthof(T (&x)[N]) { return integral_c<N>(); } // expected-note 2{{candidate … in array_lengthof() function
100 integral_c<1> ic1 = array_lengthof(Description<int>::data); in test()
101 (void)sizeof(array_lengthof(Description<float>::data)); in test()
103 sizeof(array_lengthof( // expected-error{{no matching function for call to 'array_lengthof'}} in test()
107array_lengthof(Description<float*>::data); // expected-error{{no matching function for call to 'ar… in test()
/external/clang/lib/Driver/
DToolChains.cpp1132 AArch64LibDirs + llvm::array_lengthof(AArch64LibDirs)); in CollectLibDirsAndTriples()
1134 AArch64Triples + llvm::array_lengthof(AArch64Triples)); in CollectLibDirsAndTriples()
1136 AArch64LibDirs + llvm::array_lengthof(AArch64LibDirs)); in CollectLibDirsAndTriples()
1138 AArch64Triples, AArch64Triples + llvm::array_lengthof(AArch64Triples)); in CollectLibDirsAndTriples()
1142 LibDirs.append(ARMLibDirs, ARMLibDirs + llvm::array_lengthof(ARMLibDirs)); in CollectLibDirsAndTriples()
1145 ARMHFTriples + llvm::array_lengthof(ARMHFTriples)); in CollectLibDirsAndTriples()
1148 ARMTriples + llvm::array_lengthof(ARMTriples)); in CollectLibDirsAndTriples()
1153 X86_64LibDirs + llvm::array_lengthof(X86_64LibDirs)); in CollectLibDirsAndTriples()
1155 X86_64Triples + llvm::array_lengthof(X86_64Triples)); in CollectLibDirsAndTriples()
1157 X86LibDirs + llvm::array_lengthof(X86LibDirs)); in CollectLibDirsAndTriples()
[all …]
DDriverOptions.cpp37 : OptTable(InfoTable, llvm::array_lengthof(InfoTable)) {} in DriverOptTable()
DCC1AsOptions.cpp37 : OptTable(CC1AsInfoTable, llvm::array_lengthof(CC1AsInfoTable)) {} in CC1AsOptTable()
/external/clang/lib/AST/
DCommentCommandTraits.cpp20 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) { in CommandTraits()
78 const int NumOfCommands = llvm::array_lengthof(Commands); in getTypoCorrectCommandInfo()
119 if (CommandID < llvm::array_lengthof(Commands)) in getBuiltinCommandInfo()
135 return RegisteredCommands[CommandID - llvm::array_lengthof(Commands)]; in getRegisteredCommandInfo()
/external/clang/unittests/AST/
DCommentParser.cpp644 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
781 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
811 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
841 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
872 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
927 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1061 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1083 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1107 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1129 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
[all …]
DCommentLexer.cpp95 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
111 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
130 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
150 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
173 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
252 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
269 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
287 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
315 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
320 ASSERT_EQ(array_lengthof(Text), Toks.size()); in TEST_F()
[all …]
/external/clang/test/Analysis/
Dtemplates.cpp37 inline unsigned array_lengthof(T (&)[N]) { in array_lengthof() function
43 clang_analyzer_eval(array_lengthof(S) == 2); in testNonTypeTemplateInstantiation()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp214 int Idx = CostTableLookup<MVT>(AVX2CostTable, array_lengthof(AVX2CostTable), in getArithmeticInstrCost()
242 array_lengthof(SSE2UniformConstCostTable), in getArithmeticInstrCost()
290 int Idx = CostTableLookup<MVT>(SSE2CostTable, array_lengthof(SSE2CostTable), in getArithmeticInstrCost()
315 int Idx = CostTableLookup<MVT>(AVX1CostTable, array_lengthof(AVX1CostTable), in getArithmeticInstrCost()
328 int Idx = CostTableLookup<MVT>(CustomLowered, array_lengthof(CustomLowered), in getArithmeticInstrCost()
391 array_lengthof(SSE2ConvTbl), in getCastInstrCost()
450 array_lengthof(AVXConversionTbl), in getCastInstrCost()
496 int Idx = CostTableLookup<MVT>(AVX2CostTbl, array_lengthof(AVX2CostTbl), in getCmpSelInstrCost()
503 int Idx = CostTableLookup<MVT>(AVX1CostTbl, array_lengthof(AVX1CostTbl), in getCmpSelInstrCost()
510 int Idx = CostTableLookup<MVT>(SSE42CostTbl, array_lengthof(SSE42CostTbl), in getCmpSelInstrCost()
DX86SelectionDAGInfo.cpp144 Chain = DAG.getNode(X86ISD::REP_STOS, dl, Tys, Ops, array_lengthof(Ops)); in EmitTargetCodeForMemset()
158 Chain = DAG.getNode(X86ISD::REP_STOS, dl, Tys, Ops, array_lengthof(Ops)); in EmitTargetCodeForMemset()
247 array_lengthof(Ops)); in EmitTargetCodeForMemcpy()
/external/clang/lib/Basic/
DTargetInfo.cpp243 for (unsigned j = 0; j < llvm::array_lengthof(AddlNames[i].Names); j++) { in isValidGCCRegisterName()
258 for (unsigned j = 0 ; j < llvm::array_lengthof(Aliases[i].Aliases); j++) { in isValidGCCRegisterName()
296 for (unsigned j = 0; j < llvm::array_lengthof(AddlNames[i].Names); j++) { in getNormalizedGCCRegisterName()
311 for (unsigned j = 0 ; j < llvm::array_lengthof(Aliases[i].Aliases); j++) { in getNormalizedGCCRegisterName()
DDiagnosticIDs.cpp88 static const unsigned StaticDiagInfoSize = llvm::array_lengthof(StaticDiagInfo);
224 return llvm::array_lengthof(CategoryNameTable) - 1; in getNumberOfCategories()
528 static const size_t OptionTableSize = llvm::array_lengthof(OptionTable);
DTargets.cpp1065 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
1141 NumAliases = llvm::array_lengthof(GCCRegAliases); in getGCCRegAliases()
1340 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
1758 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
1768 NumNames = llvm::array_lengthof(AddlRegNames); in getGCCAddlRegNames()
3376 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
3389 NumAliases = llvm::array_lengthof(GCCRegAliases); in getGCCRegAliases()
3861 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
3888 NumAliases = llvm::array_lengthof(GCCRegAliases); in getGCCRegAliases()
4051 NumNames = llvm::array_lengthof(GCCRegNames); in getGCCRegNames()
[all …]
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp195 int Idx = CostTableLookup<MVT>(NEONFltDblTbl, array_lengthof(NEONFltDblTbl), in getCastInstrCost()
287 array_lengthof(NEONVectorConversionTbl), in getCastInstrCost()
318 array_lengthof(NEONFloatConversionTbl), in getCastInstrCost()
351 array_lengthof(NEONIntegerConversionTbl), in getCastInstrCost()
373 array_lengthof(ARMIntegerConversionTbl), in getCastInstrCost()
416 array_lengthof(NEONVectorSelectTbl), in getCmpSelInstrCost()
467 int Idx = CostTableLookup<MVT>(NEONShuffleTbl, array_lengthof(NEONShuffleTbl), in getShuffleCost()
527 Idx = CostTableLookup<MVT>(CostTbl, array_lengthof(CostTbl), ISDOpcode, in getArithmeticInstrCost()
/external/llvm/lib/Transforms/Utils/
DMetaRenamer.cpp102 array_lengthof(metaNames)]).toStringRef(NameStorage)); in runOnModule()
112 FI->setName(metaNames[prng.rand() % array_lengthof(metaNames)]); in runOnModule()
/external/llvm/unittests/Support/
DCommandLineTest.cpp152 array_lengthof(Output)); in TEST()
161 array_lengthof(Output)); in TEST()
/external/llvm/include/llvm/Target/
DTargetLowering.h273 (unsigned)VT.getSimpleVT().SimpleTy < array_lengthof(RegClassForVT)); in isTypeLegal()
411 if (Op > array_lengthof(OpActions[0])) return Custom; in getOperationAction()
520 assert((unsigned)CC < array_lengthof(CondCodeActions) && in getCondCodeAction()
596 assert((unsigned)VT.SimpleTy < array_lengthof(RegisterTypeForVT)); in getRegisterType()
604 array_lengthof(RegisterTypeForVT)); in getRegisterType()
632 array_lengthof(NumRegistersForVT)); in getNumRegisters()
657 assert(unsigned(NT >> 3) < array_lengthof(TargetDAGCombineArray)); in hasTargetDAGCombine()
931 assert((unsigned)VT.SimpleTy < array_lengthof(RegClassForVT)); in addRegisterClass()
960 assert(Op < array_lengthof(OpActions[0]) && "Table isn't big enough!"); in setOperationAction()
1015 (unsigned)CC < array_lengthof(CondCodeActions) && in setCondCodeAction()
[all …]
/external/llvm/lib/MC/
DMCAsmBackend.cpp41 assert((size_t)Kind <= array_lengthof(Builtins) && "Unknown fixup kind"); in getFixupKindInfo()
/external/llvm/lib/Target/Mips/
DMipsRegisterInfo.cpp120 for (unsigned I = 0; I < array_lengthof(ReservedGPR32); ++I) in getReservedRegs()
123 for (unsigned I = 0; I < array_lengthof(ReservedGPR64); ++I) in getReservedRegs()
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.h290 NumEntries = array_lengthof(Offsets64); in getCalleeSavedSpillSlots()
294 NumEntries = array_lengthof(Offsets); in getCalleeSavedSpillSlots()
/external/llvm/lib/Support/
DTriple.cpp386 for (unsigned Pos = 0; Pos != array_lengthof(Found); ++Pos) { in normalize()
392 if (Idx < array_lengthof(Found) && Found[Idx]) in normalize()
434 while (i < array_lengthof(Found) && Found[i]) in normalize()
455 while (++i < array_lengthof(Found) && Found[i]) in normalize()
463 while (++Idx < array_lengthof(Found) && Found[Idx]) in normalize()
/external/llvm/utils/KillTheDoctor/
DKillTheDoctor.cpp207 array_lengthof(Filename) - 1); in GetFileNameFromHandle()
241 array_lengthof(PathName), in FindProgram()
246 else if (length > array_lengthof(PathName)) { in FindProgram()
/external/llvm/tools/llvm-config/
Dllvm-config.cpp100 for (unsigned i = 0; i != array_lengthof(AvailableComponents); ++i) { in ComputeLibsForComponents()
289 for (unsigned j = 0; j != array_lengthof(AvailableComponents); ++j) { in main()
/external/llvm/lib/Target/AArch64/Utils/
DAArch64BaseInfo.cpp250 NumInstPairs = llvm::array_lengthof(MRSPairs); in MRSMapper()
273 NumInstPairs = llvm::array_lengthof(MSRPairs); in MSRMapper()
760 for (unsigned i = 0; i < array_lengthof(SysRegPairs); ++i) { in fromString()
800 for (unsigned i = 0; i < array_lengthof(SysRegPairs); ++i) { in toString()
/external/llvm/lib/Target/R600/
DAMDILISelLowering.cpp85 const size_t NumTypes = array_lengthof(types); in InitAMDILLowering()
86 const size_t NumFloatTypes = array_lengthof(FloatTypes); in InitAMDILLowering()
87 const size_t NumIntTypes = array_lengthof(IntTypes); in InitAMDILLowering()
88 const size_t NumVectorTypes = array_lengthof(VectorTypes); in InitAMDILLowering()

1234