/llvm-project/llvm/include/llvm/IR/ |
H A D | CMakeLists.txt | 6 tablegen(LLVM IntrinsicEnums.inc -gen-intrinsic-enums) 7 tablegen(LLVM IntrinsicsAArch64.h -gen-intrinsic-enums -intrinsic-prefix=aarch64) 8 tablegen(LLVM IntrinsicsAMDGPU.h -gen-intrinsic-enums -intrinsic-prefix=amdgcn) 9 tablegen(LLVM IntrinsicsARM.h -gen-intrinsic-enums -intrinsic-prefix=arm) 10 tablegen(LLVM IntrinsicsBPF.h -gen-intrinsic-enums -intrinsic-prefix=bpf) 11 tablegen(LLVM IntrinsicsDirectX.h -gen-intrinsic-enums -intrinsic-prefix=dx) 12 tablegen(LLVM IntrinsicsHexagon.h -gen-intrinsic-enums -intrinsic-prefix=hexagon) 13 tablegen(LLVM IntrinsicsLoongArch.h -gen-intrinsic-enums -intrinsic-prefix=loongarch) 14 tablegen(LLVM IntrinsicsMips.h -gen-intrinsic-enums -intrinsic-prefix=mips) 15 tablegen(LLVM IntrinsicsNVPTX.h -gen-intrinsic-enums -intrinsic-prefix=nvvm) [all …]
|
/llvm-project/llvm/test/DebugInfo/PDB/Native/ |
H A D | pdb-native-enums.test | 11 ; RUN: llvm-pdbutil pretty -native -enums %p/../Inputs/every-enum.pdb \ 12 ; RUN: | FileCheck -check-prefix=ENUMS %s 13 ; RUN: llvm-pdbutil diadump -hierarchy -native -enums %p/../Inputs/every-enum.pdb \ 17 ENUMS: enum I8 : char { 18 ENUMS: I8A = -128 19 ENUMS: I8B = 0 20 ENUMS: I8C = 127 21 ENUMS: } 22 ENUMS: enum I16 : short { 23 ENUMS: I16A = -32768 [all …]
|
/llvm-project/llvm/test/DebugInfo/Generic/ |
H A D | debug-names-many-cu.ll | 74 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !15) 80 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !25) 86 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !35) 92 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !45) 98 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !55) 104 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !65) 110 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !75) 116 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !85) 122 … 325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !95) 128 …325732)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !105) [all …]
|
/llvm-project/clang-tools-extra/unittests/clang-doc/ |
H A D | MergeTest.cpp | 28 One.Children.Enums.emplace_back(); in TEST() 29 One.Children.Enums.back().Name = "OneEnum"; in TEST() 30 One.Children.Enums.back().USR = NonEmptySID; in TEST() 42 Two.Children.Enums.emplace_back(); in TEST() 43 Two.Children.Enums.back().Name = "TwoEnum"; in TEST() 66 Expected->Children.Enums.emplace_back(); in TEST() 67 Expected->Children.Enums.back().Name = "OneEnum"; in TEST() 68 Expected->Children.Enums.back().USR = NonEmptySID; in TEST() 69 Expected->Children.Enums.emplace_back(); in TEST() 70 Expected->Children.Enums.back().Name = "TwoEnum"; in TEST() [all …]
|
H A D | ClangDocTest.cpp | 178 ASSERT_EQ(Expected->Children.Enums.size(), Actual->Children.Enums.size()); in CheckNamespaceInfo() 179 for (size_t Idx = 0; Idx < Actual->Children.Enums.size(); ++Idx) in CheckNamespaceInfo() 180 CheckEnumInfo(&Expected->Children.Enums[Idx], &Actual->Children.Enums[Idx]); in CheckNamespaceInfo() 217 ASSERT_EQ(Expected->Children.Enums.size(), Actual->Children.Enums.size()); in CheckRecordInfo() 218 for (size_t Idx = 0; Idx < Actual->Children.Enums.size(); ++Idx) in CheckRecordInfo() 219 CheckEnumInfo(&Expected->Children.Enums[Idx], &Actual->Children.Enums[Idx]); in CheckRecordInfo()
|
H A D | HTMLGeneratorTest.cpp | 54 I.Children.Enums.emplace_back(); in TEST() 55 I.Children.Enums.back().Name = "OneEnum"; in TEST() 93 <h2 id="Enums">Enums</h2> in TEST() 130 <a href="#Enums">Enums</a> in TEST() 172 I.Children.Enums.emplace_back(); in TEST() 173 I.Children.Enums.back().Name = "OneEnum"; in TEST() 221 <h2 id="Enums">Enums</h in TEST() [all...] |
H A D | MDGeneratorTest.cpp | 35 I.Children.Enums.emplace_back(); in TEST() 36 I.Children.Enums.back().Name = "OneEnum"; in TEST() 66 ## Enums in TEST() 96 I.Children.Enums.emplace_back(); in TEST() 97 I.Children.Enums.back().Name = "OneEnum"; in TEST() 133 ## Enums in TEST()
|
/llvm-project/clang/test/Driver/ |
H A D | zos-driver-defaults.c | 1 …390x-none-zos -fsyntax-only %s 2>&1 | FileCheck --check-prefixes=CHECK-C-MACRO,CHECK-SHORT-ENUMS %s 3 // RUN: %clang -### --target=s390x-none-zos -fno-short-enums -fsyntax-only %s 2>&1 | FileCheck %s 14 //CHECK-SHORT-ENUMS: -fshort-enums 15 //CHECK-SHORT-ENUMS: -fno-signed-char 22 //CHECK-NOT: -fshort-enums
|
H A D | zos-comp-cxx.cpp | 14 // CHECK-SAME: "-fshort-enums" 28 // CHECK2-SAME: "-fshort-enums" 41 // CHECK3-SAME: "-fshort-enums" 54 // CHECK4-SAME: "-fshort-enums" 67 // CHECK5-SAME: "-fshort-enums" 80 // CHECK6-SAME: "-fshort-enums" 97 // CHECK7-SAME: "-fshort-enums"
|
H A D | zos-comp.c | 12 // CHECK-SAME: "-fshort-enums" 27 // CHECK2-SAME: "-fshort-enums" 43 // CHECK3-SAME: "-fshort-enums" 57 // CHECK4-SAME: "-fshort-enums" 72 // CHECK5-SAME: "-fshort-enums"
|
/llvm-project/lldb/test/Shell/SymbolFile/PDB/ |
H A D | enums-layout.test | 2 RUN: %build --compiler=msvc --arch=32 --nodefaultlib --output=%T/SimpleTypesTest.cpp.enums.exe %S/I… 3 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=ENUM %s 4 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=CONST-ENUM %s 5 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=EMPTY-ENUM %s 6 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=UCHAR-ENUM %s 7 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=CLASS-ENUM %s 8 RUN: lldb-test symbols %T/SimpleTypesTest.cpp.enums.exe | FileCheck --check-prefix=STRUCT-ENUM %s
|
/llvm-project/clang/test/SemaCXX/ |
H A D | warn-msvc-enum-bitfield.cpp | 3 // Enums used in bitfields with no explicitly specified underlying type. 9 …s.e1 = E1; // expected-warning {{enums in the Microsoft ABI are signed integers by default; consid… in test0() 10 …s.f1 = F1; // expected-warning {{enums in the Microsoft ABI are signed integers by default; consid… in test0() 16 // Enums used in bitfields with an explicit signed underlying type. 29 // Enums used in bitfields with an explicitly unsigned underlying type.
|
/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | MacroToEnumCheck.cpp | 126 // Keep track of macro definitions that look like enums. 187 if (Enums.empty() || !Enums.back().empty()) in newEnum() 188 Enums.emplace_back(); in newEnum() 221 SmallVector<MacroList> Enums; member in clang::tidy::modernize::MacroToEnumCallbacks 247 if (!Enums.empty() && !Enums.back().empty() && in clearCurrentEnum() 249 Enums.pop_back(); in clearCurrentEnum() 281 llvm::erase_if(Enums, [&Id](const MacroList &MacroList) { in checkName() 334 // are to be excluded as enums. 363 Enums.back().emplace_back(MacroNameTok, MD); in MacroDefined() 378 auto It = llvm::find_if(Enums, [MatchesToken](const MacroList &MacroList) { in MacroUndefined() [all …]
|
/llvm-project/clang/test/CodeGenCXX/ |
H A D | pr12251.cpp | 1 // RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -O1 -relaxed-aliasing -fstrict-enums … 2 …nown -emit-llvm -O1 -relaxed-aliasing -std=c++11 -o - | FileCheck --check-prefix=NO-STRICT-ENUMS %s 11 // metadata shows up when strict enums are disabled. 12 // NO-STRICT-ENUMS-LABEL: define{{.*}} zeroext i1 @_Z1fPb 13 // NO-STRICT-ENUMS: load i8, ptr %{{[^ ]*}}, align 1, !range 14 // NO-STRICT-ENUMS-NOT: !range
|
H A D | debug-info-enum.cpp | 5 // CHECK-SAME: enums: [[ENUMS:![0-9]*]] 6 // CHECK: [[ENUMS]] = !{[[E1:![0-9]*]], [[E2:![0-9]*]], [[E3:![0-9]*]]}
|
/llvm-project/clang/include/clang/Basic/ |
H A D | SyncScope.h | 29 /// synch scope enums used in source languages. 31 /// In atomic builtin and expressions, language-specific synch scope enums are 32 /// used. Currently only OpenCL memory scope enums are supported and assumed 34 /// define their own set of synch scope enums. The language-specific synch scope 128 /// enums in opencl-c-base.h. 176 /// enums in hip-c.h.
|
/llvm-project/llvm/test/Transforms/StripSymbols/ |
H A D | strip-dead-debug-info.ll | 43 …M build)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes… 62 …er: "GCC", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes… 63 …"Globals", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes… 67 …lineTest", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !5, retainedTypes…
|
H A D | strip-cu-with-dangling-subprogram.ll | 27 … "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, imports: !2, … 30 … "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, imports: !2, … 32 … "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes…
|
/llvm-project/llvm/test/ThinLTO/X86/ |
H A D | import-metadata.ll | 9 ;; Check the imported DICompileUnit doesn't have the enums operand. 11 ;; enums operand originally is not null. 35 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, enums: !4)
|
/llvm-project/clang/test/Sema/ |
H A D | attr-mode-enums.c | 3 // Test checks that 'mode' attribute is handled correctly with enums, i. e. code 11 // Vector mode are not allowed with enums. in main() 25 // Incomplete enums without mode attribute are not allowed. in main()
|
/llvm-project/lldb/test/API/commands/expression/vector_of_enums/ |
H A D | TestVectorOfEnums.py | 2 Test Expression Parser regression test to ensure that we handle enums 3 correctly, in this case specifically std::vector of enums.
|
/llvm-project/clang/docs/tools/ |
H A D | dump_format_style.py | 307 enums = {} 391 if field_type in enums: 398 enums[field_type].values, 412 enums[enum.name] = enum 423 enums[enum.name] = enum 469 if option.type in enums: 470 option.enum = enums[option.type]
|
/llvm-project/llvm/test/DebugInfo/X86/ |
H A D | debug-macro.ll | 45 …g version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes… 63 … version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !17, enums: !2, retainedTypes… 68 … version 3.5.0 ", isOptimized: false, emissionKind: FullDebug, file: !21, enums: !2, retainedTypes…
|
H A D | string-offsets-table-order.ll | 44 …337361)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !14, globals: !15) 56 …337361)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !24, globals: !25) 68 …337361)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !34, globals: !35)
|
/llvm-project/llvm/test/tools/dxil-dis/ |
H A D | di-compile-unit.ll | 7 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Some Compiler", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None) 13 ; CHECK: !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Some Compiler", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2)
|