Home
last modified time | relevance | path

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

123456

/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-init.cpp89 …integral_c<N> array_lengthof(T (&x)[N]) { return integral_c<N>(); } // expected-note 2{{candidate … in array_lengthof() function
108 integral_c<1> ic1 = array_lengthof(Description<int>::data); in test()
109 (void)sizeof(array_lengthof(Description<float>::data)); in test()
111 …(void)sizeof(array_lengthof( // expected-error{{no matching function for call to 'array_lengthof'}} in test()
115array_lengthof(Description<float*>::data); // expected-error{{no matching function for call to 'ar… in test()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVEnums.cpp62 return ArrayRef<spirv::Extension>(exts, llvm::array_lengthof(exts)); in getImpliedExtensions()
66 return ArrayRef<spirv::Extension>(exts, llvm::array_lengthof(exts)); in getImpliedExtensions()
71 return ArrayRef<spirv::Extension>(exts, llvm::array_lengthof(exts)); in getImpliedExtensions()
H A DSPIRVTypes.cpp171 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); in getCapabilities()
245 ArrayRef<Extension> ref(exts, llvm::array_lengthof(exts)); in getExtensions()
254 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); in getCapabilities()
480 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); in getCapabilities()
529 ArrayRef<Extension> ref(exts, llvm::array_lengthof(exts)); in getExtensions()
537 ArrayRef<Extension> ref(exts, llvm::array_lengthof(exts)); in getExtensions()
559 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); \ in getCapabilities()
565 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); \ in getCapabilities()
586 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); in getCapabilities()
604 ArrayRef<Capability> ref(caps, llvm::array_lengthof(caps)); \ in getCapabilities()
[all …]
/llvm-project-15.0.7/clang/unittests/AST/
H A DCommentParser.cpp667 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
804 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
834 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
864 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
895 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
950 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1084 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1106 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1130 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
1152 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
[all …]
H A DCommentLexer.cpp94 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
110 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
129 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
149 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
172 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
251 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
268 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
286 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
314 for (size_t i = 0, e = array_lengthof(Sources); i != e; i++) { in TEST_F()
319 ASSERT_EQ(array_lengthof(Text), Toks.size()); in TEST_F()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/minidump/
H A DRegisterContextMinidump_ARM.cpp339 constexpr size_t k_num_reg_infos = llvm::array_lengthof(g_reg_infos);
448 constexpr size_t k_num_gpr_regs = llvm::array_lengthof(g_gpr_regnums) - 1;
449 constexpr size_t k_num_fpu_regs = llvm::array_lengthof(g_fpu_regnums) - 1;
456 constexpr size_t k_num_reg_sets = llvm::array_lengthof(g_reg_sets);
463 for (unsigned i = 0; i < llvm::array_lengthof(m_regs.r); ++i) in RegisterContextMinidump_ARM()
467 for (unsigned i = 0; i < llvm::array_lengthof(m_regs.d); ++i) in RegisterContextMinidump_ARM()
H A DRegisterContextMinidump_ARM64.cpp547 constexpr size_t k_num_reg_infos = llvm::array_lengthof(g_reg_infos);
754 constexpr size_t k_num_gpr_regs = llvm::array_lengthof(g_gpr_regnums) - 1;
755 constexpr size_t k_num_fpu_regs = llvm::array_lengthof(g_fpu_regnums) - 1;
762 constexpr size_t k_num_reg_sets = llvm::array_lengthof(g_reg_sets);
/llvm-project-15.0.7/clang/lib/AST/
H A DCommentCommandTraits.cpp20 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) { in CommandTraits()
118 if (CommandID < llvm::array_lengthof(Commands)) in getBuiltinCommandInfo()
134 return RegisteredCommands[CommandID - llvm::array_lengthof(Commands)]; in getRegisteredCommandInfo()
H A DAttrDocTable.cpp24 if(K < llvm::array_lengthof(AttrDoc)) in getDocumentation()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dtemplates.cpp37 inline unsigned array_lengthof(T (&)[N]) { in array_lengthof() function
43 clang_analyzer_eval(array_lengthof(S) == 2); in testNonTypeTemplateInstantiation()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/x86/
H A DRegisterContextWindows_x86.cpp121 static size_t k_num_register_infos = llvm::array_lengthof(g_register_infos);
133 llvm::array_lengthof(g_gpr_reg_indices), g_gpr_reg_indices},
145 return llvm::array_lengthof(g_register_infos); in GetRegisterCount()
156 return llvm::array_lengthof(g_register_sets); in GetRegisterSetCount()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/arm/
H A DRegisterContextWindows_arm.cpp44 static size_t k_num_register_infos = llvm::array_lengthof(g_register_infos_arm);
72 llvm::array_lengthof(g_gpr_reg_indices), g_gpr_reg_indices},
73 {"Floating Point Registers", "fpu", llvm::array_lengthof(g_fpu_reg_indices),
85 return llvm::array_lengthof(g_register_infos_arm); in GetRegisterCount()
96 return llvm::array_lengthof(g_register_sets); in GetRegisterSetCount()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/arm64/
H A DRegisterContextWindows_arm64.cpp48 llvm::array_lengthof(g_register_infos_arm64_le);
86 llvm::array_lengthof(g_gpr_reg_indices), g_gpr_reg_indices},
87 {"Floating Point Registers", "fpu", llvm::array_lengthof(g_fpu_reg_indices),
99 return llvm::array_lengthof(g_register_infos_arm64_le); in GetRegisterCount()
110 return llvm::array_lengthof(g_register_sets); in GetRegisterSetCount()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCCallingConv.cpp40 const unsigned NumArgRegs = array_lengthof(ArgRegs); in CC_PPC32_SVR4_Custom_AlignArgRegs()
65 const unsigned NumArgRegs = array_lengthof(ArgRegs); in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
91 const unsigned NumArgRegs = array_lengthof(ArgRegs); in CC_PPC32_SVR4_Custom_AlignFPArgRegs()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DSubtargetFeature.h106 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) {
118 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) {
130 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) {
/llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/
H A DRegisterContextWindows_i386.cpp81 return llvm::array_lengthof(g_register_infos_i386); in GetRegisterCount()
85 return llvm::array_lengthof(g_register_infos_i386); in GetUserRegisterCount()
H A DRegisterContextDarwin_i386.cpp366 static size_t k_num_register_infos = llvm::array_lengthof(g_register_infos);
424 const size_t k_num_gpr_registers = llvm::array_lengthof(g_gpr_regnums);
425 const size_t k_num_fpu_registers = llvm::array_lengthof(g_fpu_regnums);
426 const size_t k_num_exc_registers = llvm::array_lengthof(g_exc_regnums);
438 const size_t k_num_regsets = llvm::array_lengthof(g_reg_sets);
H A DRegisterContextWindows_x86_64.cpp144 return llvm::array_lengthof(g_register_infos_x86_64); in GetRegisterCount()
148 return llvm::array_lengthof(g_register_infos_x86_64); in GetUserRegisterCount()
H A DRegisterContextDarwin_x86_64.cpp423 static size_t k_num_register_infos = llvm::array_lengthof(g_register_infos);
480 const size_t k_num_gpr_registers = llvm::array_lengthof(g_gpr_regnums);
481 const size_t k_num_fpu_registers = llvm::array_lengthof(g_fpu_regnums);
482 const size_t k_num_exc_registers = llvm::array_lengthof(g_exc_regnums);
494 const size_t k_num_regsets = llvm::array_lengthof(g_reg_sets);
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSTLArrayExtras.h29 constexpr inline size_t array_lengthof(T (&)[N]) { in array_lengthof() function
/llvm-project-15.0.7/llvm/lib/Support/
H A DX86TargetParser.cpp57 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) { in operator &=()
66 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) { in operator |=()
77 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) in operator &()
85 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) in operator |()
92 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) in operator ~()
98 for (unsigned I = 0, E = array_lengthof(Bits); I != E; ++I) in operator !=()
695 std::array<unsigned, array_lengthof(Priorities) - 1> HelperList; in getFeaturePriority()
H A DARMAttributeParser.cpp214 if (value < array_lengthof(strings)) in ABI_align_needed()
233 if (value < array_lengthof(strings)) in ABI_align_preserved()
385 for (unsigned AHI = 0, AHE = array_lengthof(displayRoutines); AHI != AHE; in handler()
H A DRISCVAttributeParser.cpp56 for (unsigned AHI = 0, AHE = array_lengthof(displayRoutines); AHI != AHE; in handler()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Windows/Common/x64/
H A DRegisterContextWindows_x64.cpp265 static size_t k_num_register_infos = llvm::array_lengthof(g_register_infos);
307 llvm::array_lengthof(g_gpr_reg_indices), g_gpr_reg_indices},
309 llvm::array_lengthof(g_fpu_reg_indices), g_fpu_reg_indices}};
320 return llvm::array_lengthof(g_register_infos); in GetRegisterCount()
331 return llvm::array_lengthof(g_register_sets); in GetRegisterSetCount()
/llvm-project-15.0.7/llvm/utils/KillTheDoctor/
H A DKillTheDoctor.cpp210 array_lengthof(Filename) - 1); in GetFileNameFromHandle()
245 array_lengthof(PathName), in FindProgram()
250 else if (length > array_lengthof(PathName)) { in FindProgram()

123456