/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyRuntimeLibcallSignatures.cpp | 14 /// table providing type signatures for all runtime library functions that LLVM 92 std::vector<RuntimeLibcallSignature> Table; 95 RuntimeLibcallSignatureTable() : Table(RTLIB::UNKNOWN_LIBCALL, unsupported) { 97 Table[RTLIB::SHL_I16] = i16_func_i16_i16; in RuntimeLibcallSignatureTable() 98 Table[RTLIB::SHL_I32] = i32_func_i32_i32; in RuntimeLibcallSignatureTable() 99 Table[RTLIB::SHL_I64] = i64_func_i64_i64; in RuntimeLibcallSignatureTable() 100 Table[RTLIB::SHL_I128] = i64_i64_func_i64_i64_i32; in RuntimeLibcallSignatureTable() 101 Table[RTLIB::SRL_I16] = i16_func_i16_i16; in RuntimeLibcallSignatureTable() 102 Table[RTLIB::SRL_I32] = i32_func_i32_i32; in RuntimeLibcallSignatureTable() 103 Table[RTLI in RuntimeLibcallSignatureTable() 93 std::vector<RuntimeLibcallSignature> Table; global() member 541 auto &Table = getRuntimeLibcallSignatures().Table; getLibcallSignature() local [all...] |
H A D | WebAssemblyInstrTable.td | 1 // WebAssemblyInstrTable.td - WebAssembly Table codegen support -*- tablegen -*- 10 /// WebAssembly Table operand code-gen constructs. 23 multiclass TABLE<WebAssemblyRegClass rc, string suffix> { 25 defm TABLE_GET_#rc : I<(outs rc:$res), (ins table32_op:$table, I32:$i), 26 (outs), (ins table32_op:$table), 27 …cast<Intrinsic>("int_wasm_table_get_" # suffix) (WebAssemblyWrapper tglobaladdr:$table), I32:$i))], 28 "table.get\t$res, $table, $i", 29 "table.get\t$table", 33 defm TABLE_SET_#rc : I<(outs), (ins table32_op:$table, I32:$i, rc:$val), 34 (outs), (ins table32_op:$table), [all …]
|
/llvm-project/polly/lib/External/isl/ |
H A D | isl_hash.c | 42 int isl_hash_table_init(struct isl_ctx *ctx, struct isl_hash_table *table, in isl_hash_table_init() argument 47 if (!table) in isl_hash_table_init() 52 table->bits = ffs(round_up(4 * (min_size + 1) / 3 - 1)) - 1; in isl_hash_table_init() 53 table->n = 0; in isl_hash_table_init() 55 size = 1 << table->bits; in isl_hash_table_init() 56 table->entries = isl_calloc_array(ctx, struct isl_hash_table_entry, in isl_hash_table_init() 58 if (!table->entries) in isl_hash_table_init() 71 /* Extend "table" to twice its size. 74 * We reuse isl_hash_table_find to create entries in the extended table. 75 * Since all entries in the original table are assumed to be different, [all …]
|
/llvm-project/clang/test/Sema/ |
H A D | builtins-wasm.c | 5 static __externref_t table[0]; variable 14 …table_size(1); // expected-error {{1st argument must be a WebAssembly table}} in test_table_size() 15 …table_size(ref); // expected-error {{1st argument must be a WebAssembly table}} in test_table_size() 16 …table_size(ptr); // expected-error {{1st argument must be a WebAssembly table}} in test_table_size() 17 …table_size(arr); // expected-error {{1st argument must be a WebAssembly table}} in test_table_size() 18 …__builtin_wasm_table_size(table, table); // expected-error {{too many arguments to func… in test_table_size() 20 _Static_assert(EXPR_HAS_TYPE(__builtin_wasm_table_size(table), unsigned long), ""); in test_table_size() 25 …__builtin_wasm_table_grow(table, table, table, table); // expected-error {{too many arguments to f… in test_table_grow() 26 …le_grow(ref, ref, size); // expected-error {{1st argument must be a WebAssembly table}} in test_table_grow() 27 …in_wasm_table_grow(table, table, size); // expected-error {{2nd argument must match the el… in test_table_grow() [all …]
|
H A D | wasm-refs-and-tables.c | 18 __externref_t t7[0]; // expected-error {{WebAssembly table must be static}} 20 static __externref_t (*t9)[0]; // expected-error {{cannot form a pointer to a WebAssembly table}} 22 static __externref_t table[0]; variable 33 __externref_t (*f7)[0]; // expected-error {{cannot form a pointer to a WebAssembly table}} 43 __externref_t (*f7)[0]; // expected-error {{cannot form a pointer to a WebAssembly table}} 46 void illegal_argument_1(__externref_t table[]); // expected-error {{cannot use WebAssembly tabl… 47 void illegal_argument_2(__externref_t table[0][0]); // expected-error {{multi-dimensional arrays of… 48 void illegal_argument_3(__externref_t *table); // expected-error {{pointer to WebAssembly refe… 49 void illegal_argument_4(__externref_t ***table); // expected-error {{pointer to WebAssembly refe… 50 …id illegal_argument_5(__externref_t (*table)[0]); // expected-error {{cannot form a pointer to a W… [all …]
|
/llvm-project/llvm/unittests/DebugInfo/PDB/ |
H A D | HashTableTest.cpp | 47 HashTableInternals<> Table; in TEST() local 48 EXPECT_EQ(0u, Table.size()); in TEST() 49 EXPECT_GT(Table.capacity(), 0u); in TEST() 52 Table.set_as(3u, 7, Traits); in TEST() 53 EXPECT_EQ(1u, Table.size()); in TEST() 54 ASSERT_NE(Table.end(), Table.find_as(3u, Traits)); in TEST() 55 EXPECT_EQ(7u, Table.get(3u, Traits)); in TEST() 59 HashTableInternals<> Table; in TEST() local 60 EXPECT_EQ(0u, Table.size()); in TEST() 61 EXPECT_GT(Table.capacity(), 0u); in TEST() [all …]
|
/llvm-project/flang/unittests/Evaluate/ |
H A D | intrinsics.cpp | 62 : defaults{d}, table{t}, name{n} {} in TestCall() 109 FoldingContext context{messages, defaults, table, targetCharacteristics, in DoCall() 111 std::optional<SpecificCall> si{table.Probe(call, args, context)}; in DoCall() 139 const IntrinsicProcTable &table; member 152 IntrinsicProcTable table{IntrinsicProcTable::Configure(defaults)}; in TestIntrinsics() local 153 table.Dump(llvm::outs()); in TestIntrinsics() 165 TestCall{defaults, table, "bad"} in TestIntrinsics() 168 TestCall{defaults, table, "abs"} in TestIntrinsics() 171 TestCall{defaults, table, "abs"} in TestIntrinsics() 174 TestCall{defaults, table, "abs"} in TestIntrinsics() [all …]
|
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/ |
H A D | debug_line_invalid.test | 54 ## For fatal issues, the following table(s) should not be dumped: 57 # RESERVED: warning: parsing line table prologue at offset 0x00000048: unsupported reserved unit le… 62 ## For non-fatal issues, the table data should be dumped: 64 ## Version 0 table. 66 # NONFATAL-NEXT: Line table prologue 71 # SOME-ERR-NEXT: warning: parsing line table prologue at offset 0x00000048: unsupported version 0 73 ## Version 1 table. 75 # NONFATAL-NEXT: Line table prologue 80 # SOME-ERR-NEXT: warning: parsing line table prologue at offset 0x0000004e: unsupported version 1 84 # SOME-ERR-NEXT: warning: parsing line table prologue at 0x00000054 found an invalid directory or f… [all …]
|
H A D | debug_rnglists_invalid.s | 5 # SHORT: error: parsing .debug_rnglists table at offset 0x0: unexpected end of data at offset 0x3 28 # CHECK: error: .debug_rnglists table at offset 0x22 has too small length (0xb) to contain a comple… 29 # CHECK-NEXT: error: unrecognised .debug_rnglists table version 4 in table at offset 0x2d 30 # CHECK-NEXT: error: .debug_rnglists table at offset 0x39 has unsupported address size: 3 31 # CHECK-NEXT: error: .debug_rnglists table at offset 0x45 has unsupported segment selector size 4 32 # CHECK-NEXT: error: .debug_rnglists table at offset 0x51 has more offset entries (12345678) than t… 33 # CHECK-NEXT: error: read past end of table when reading DW_RLE_start_end encoding at offset 0x69 34 # CHECK-NEXT: error: read past end of table when reading DW_RLE_start_length encoding at offset 0x82 36 # CHECK-NEXT: error: no end of list marker detected at end of .debug_rnglists table starting at off… 37 # CHECK-NEXT: error: section is not large enough to contain a .debug_rnglists table of length 0x1f … [all …]
|
/llvm-project/llvm/utils/emacs/ |
H A D | tablegen-mode.el | 51 ;; ---------------------- Syntax table --------------------------- 53 (defvar tablegen-mode-syntax-table nil 54 "Syntax table used in `tablegen-mode' buffers.") 55 (when (not tablegen-mode-syntax-table) 56 (setq tablegen-mode-syntax-table (make-syntax-table)) 58 (modify-syntax-entry ?\ " " tablegen-mode-syntax-table) 59 (modify-syntax-entry ?\t " " tablegen-mode-syntax-table) 60 (modify-syntax-entry ?\r " " tablegen-mode-syntax-table) 61 (modify-syntax-entry ?\n " " tablegen-mode-syntax-table) 62 (modify-syntax-entry ?\f " " tablegen-mode-syntax-table) [all …]
|
/llvm-project/llvm/utils/TableGen/ |
H A D | SearchableTableEmitter.cpp | 32 #define DEBUG_TYPE "searchable-table-emitter" 157 std::string searchableFieldType(const GenericTable &Table, in searchableFieldType() argument 176 PrintFatalError(Index.Loc, Twine("In table '") + Table.Name + in searchableFieldType() 185 Twine("In table '") + Table.Name + "' lookup method '" + in searchableFieldType() 190 void emitGenericTable(const GenericTable &Table, raw_ostream &OS); 192 void emitLookupDeclaration(const GenericTable &Table, 194 void emitLookupFunction(const GenericTable &Table, const SearchIndex &Index, 200 parseSearchIndex(GenericTable &Table, cons 319 emitLookupFunction(const GenericTable & Table,const SearchIndex & Index,bool IsPrimary,raw_ostream & OS) emitLookupFunction() argument 495 emitLookupDeclaration(const GenericTable & Table,const SearchIndex & Index,raw_ostream & OS) emitLookupDeclaration() argument 507 emitGenericTable(const GenericTable & Table,raw_ostream & OS) emitGenericTable() argument 571 parseSearchIndex(GenericTable & Table,const RecordVal * KeyRecVal,StringRef Name,const std::vector<StringRef> & Key,bool EarlyOut) parseSearchIndex() argument 630 collectTableEntries(GenericTable & Table,const std::vector<Record * > & Items) collectTableEntries() argument 719 auto Table = std::make_unique<GenericTable>(); run() local 792 GenericTable &Table = *It->second; run() local 825 auto Table = std::make_unique<GenericTable>(); run() local 861 for (const auto &Table : Tables) run() local [all...] |
/llvm-project/clang/www/analyzer/ |
H A D | content.css | 51 table.options thead { 59 table.options { border: 1px #cccccc solid } 60 table.options { border-collapse: collapse; border-spacing: 0px } 61 table.options { margin-left:0px; margin-top:20px; margin-bottom:20px } 62 table.options td { border-bottom: 1px #cccccc dotted } 63 table.options td { padding:5px; padding-left:8px; padding-right:8px } 64 table.options td { text-align:left; font-size:9pt } 66 table.checkers { 71 table-layout: fixed; 76 table.checkers thead { [all …]
|
/llvm-project/llvm/test/CodeGen/AArch64/ |
H A D | max-jump-table.ll | 1 …-print-after-isel -mtriple=aarch64-linux-gnu -aarch64-min-jump-table-entries=4 -jump-table-density… 2 …sel -mtriple=aarch64-linux-gnu -aarch64-min-jump-table-entries=4 -jump-table-density=40 -max-jump-… 3 …sel -mtriple=aarch64-linux-gnu -aarch64-min-jump-table-entries=4 -jump-table-density=40 -max-jump-… 4 …sel -mtriple=aarch64-linux-gnu -aarch64-min-jump-table-entries=4 -jump-table-density=40 -max-jump-… 5 …-print-after-isel -mtriple=aarch64-linux-gnu -aarch64-min-jump-table-entries=4 -jump-table-density… 32 ; CHECK0-NEXT: %jump-table.0: %bb.1 %bb.2 %bb.3 %bb.4 %bb.5 %bb.6 %bb.7 %bb.8 %bb.9 %bb.10 %bb.11 … 33 ; CHECK0-NOT: %jump-table.1: 34 ; CHECK4-NEXT: %jump-table.0: %bb.2 %bb.3 %bb.4 %bb.5 35 ; CHECK4-NEXT: %jump-table.1: %bb.6 %bb.7 %bb.8 %bb.9 36 ; CHECK4-NEXT: %jump-table.2: %bb.10 %bb.11 %bb.12 %bb.13 [all …]
|
/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | dynamic-malformed.test | 12 # WARN: warning: '[[FILE]]': no valid dynamic table was found 21 # WARN-GNU: warning: '[[FILE]]': no valid dynamic table was found 23 # WARN-GNU: Symbol table '.symtab' contains 1 entries: 49 # RUN: llvm-readobj --dynamic-table %t.bad-entsize | FileCheck %s --check-prefix BAD-ENTSIZE-LLVM 50 # RUN: llvm-readelf --dynamic-table %t.bad-entsize | FileCheck %s --check-prefix BAD-ENTSIZE-GNU 89 ## Test handling of string references pointing past the end of the dynamic string table. 91 # RUN: llvm-readobj --dynamic-table %t.bad-string 2>&1 | \ 93 # RUN: llvm-readelf --dynamic-table %t.bad-string 2>&1 | \ 96 … warning: '[[FILE]]': string table at offset 0xb0: unable to read the string at 0xb6: it goes pa… 102 …T: warning: '[[FILE]]': string table at offset 0xb0: unable to read the string at 0xb2: it goes pa… [all …]
|
H A D | hash-table.test | 1 ## Check how the SHT_HASH section is dumped with --hash-table. 6 # RUN: llvm-readobj --hash-table %t.x64 | FileCheck %s --check-prefix=HASH 7 # RUN: llvm-readelf --hash-table %t.x64 | FileCheck %s --check-prefix=HASH 9 # RUN: llvm-readobj --hash-table %t.x32 | FileCheck %s --check-prefix=HASH 10 # RUN: llvm-readelf --hash-table %t.x32 | FileCheck %s --check-prefix=HASH 51 # RUN: llvm-readobj --hash-table %t.x64.ent8 | FileCheck %s --check-prefix=HASH 52 # RUN: llvm-readelf --hash-table %t.x64.ent8 | FileCheck %s --check-prefix=HASH 53 # RUN: llvm-readobj --hash-table %t.x32.ent8 | FileCheck %s --check-prefix=HASH 54 # RUN: llvm-readelf --hash-table %t.x32.ent8 | FileCheck %s --check-prefix=HASH 58 ## of hash entries in the hash table must be 4. [all …]
|
H A D | malformed-pt-dynamic.test | 7 ## Case A.1: the section header table is present in the object. Check that we report a warning abou… 8 ## broken PT_DYNAMIC header, check we dump the dynamic table. 10 # RUN: llvm-readobj %t1 --dynamic-table 2>&1 | FileCheck -DFILE=%t1 %s --check-prefixes=WARN1,WARN1… 11 # RUN: llvm-readelf %t1 --dynamic-table 2>&1 | FileCheck -DFILE=%t1 %s --check-prefixes=WARN1,WARN1… 24 ## Case A.2: in this case we drop section headers. The dynamic table is not dumped. 26 # RUN: llvm-readobj %t1.noheaders --dynamic-table 2>&1 | FileCheck -DFILE=%t1.noheaders %s \ 28 # RUN: llvm-readelf %t1.noheaders --dynamic-table 2>&1 | FileCheck -DFILE=%t1.noheaders %s \ 35 ## Case B.1: the section header table is present in the object. Check that we report a warning abou… 38 # RUN: llvm-readobj %t2 --dynamic-table 2>&1 | FileCheck -DFILE=%t2 %s \ 40 # RUN: llvm-readelf %t2 --dynamic-table 2>&1 | FileCheck -DFILE=%t2 %s \ [all …]
|
/llvm-project/llvm/test/MC/WebAssembly/ |
H A D | tables.s | 23 # Table instructions 29 # CHECK: table.size table1 30 # CHECK: table.copy table1, table2 37 …# ENC: table.size table1 # encoding: [0xfc,0x10,0x80'A',0x80'A',0x80'A',0x80'A',A] 38 table.size table1 40 …# ENC: table.copy table1, table2 # encoding: [0xfc,0x0e,0x80'A',0x80'A',0x80'A',0x80'A',A… 41 table.copy table1, table2 47 # CHECK: table.get foo 53 # ENC: table.get foo # encoding: [0x25,0x80'A',0x80'A',0x80'A',0x80'A',A] 54 table.get foo [all …]
|
/llvm-project/clang-tools-extra/pseudo/test/ |
H A D | lr-build-conflicts.test |
|
H A D | lr-build-basic.test |
|
/llvm-project/llvm/test/CodeGen/AMDGPU/ |
H A D | lower-module-lds-single-var-unambiguous.ll | 3 …er-module-lds < %s --amdgpu-lower-module-lds-strategy=table | FileCheck -check-prefixes=CHECK,TABL… 36 ; TABLE-LABEL: @f0( 37 ; TABLE-NEXT: [[TMP1:%.*]] = call i32 @llvm.amdgcn.lds.kernel.id() 38 ; TABLE-NEXT: [[F0_LDS2:%.*]] = getelementptr inbounds [2 x [2 x i32]], ptr addrspace(4) @llvm.a… 39 ; TABLE-NEXT: [[TMP2:%.*]] = load i32, ptr addrspace(4) [[F0_LDS2]], align 4 40 ; TABLE-NEXT: [[F0_LDS3:%.*]] = inttoptr i32 [[TMP2]] to ptr addrspace(3) 41 ; TABLE-NEXT: [[LD:%.*]] = load i16, ptr addrspace(3) [[F0_LDS3]], align 2 42 ; TABLE-NEXT: [[MUL:%.*]] = mul i16 [[LD]], 3 43 ; TABLE-NEXT: [[F0_LDS:%.*]] = getelementptr inbounds [2 x [2 x i32]], ptr addrspace(4) @llvm.am… 44 ; TABLE-NEXT: [[TMP3:%.*]] = load i32, ptr addrspace(4) [[F0_LDS]], align 4 [all …]
|
/llvm-project/llvm/lib/Target/X86/ |
H A D | X86InstrFoldTables.cpp | 24 // makes sorting these tables a simple matter of alphabetizing the table. 27 // Table to map instructions safe to broadcast using a different width from the 90 lookupFoldTableImpl(ArrayRef<X86FoldTableEntry> Table, unsigned RegOp) { in lookupFoldTableImpl() argument 92 #define CHECK_SORTED_UNIQUE(TABLE) \ in lookupFoldTableImpl() argument 93 assert(llvm::is_sorted(TABLE) && #TABLE " is not sorted"); \ in lookupFoldTableImpl() 94 assert(std::adjacent_find(std::begin(Table), std::end(Table)) == \ in lookupFoldTableImpl() 95 std::end(Table) && \ in lookupFoldTableImpl() 96 #TABLE " is not unique"); in lookupFoldTableImpl() 117 const X86FoldTableEntry *Data = llvm::lower_bound(Table, RegOp); in lookupFoldTableImpl() 118 if (Data != Table.end() && Data->KeyOp == RegOp && in lookupFoldTableImpl() [all …]
|
/llvm-project/llvm/test/Transforms/RelLookupTableConverter/X86/ |
H A D | relative_lookup_table.ll | 3 ; RUN: opt < %s -passes=rel-lookup-table-converter -relocation-model=pic -S | FileCheck %s 29 @switch.table.external_linkage = private unnamed_addr constant [3 x ptr] [ptr @a1, ptr @b1, ptr @c1… 31 @switch.table.internal_linkage = private unnamed_addr constant [3 x ptr] [ptr @a2, ptr @b2, ptr @c2… 33 @switch.table.string_table = private unnamed_addr constant [3 x ptr] 40 @switch.table.string_table_holes = private unnamed_addr constant [4 x ptr] 48 @switch.table.single_value = private unnamed_addr constant [3 x ptr] 55 @user_defined_lookup_table.table = internal unnamed_addr constant [3 x ptr] 62 @table = internal constant [2 x ptr] [ 72 ; Lookup table check for integer pointers that have external linkage 73 ; CHECK: @switch.table.external_linkage = private unnamed_addr constant [3 x ptr] [ptr @a1, ptr @b1… [all …]
|
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/Inputs/ |
H A D | debug_line_malformed.s | 15 .asciz "dir1" # Include table 18 .asciz "file1" # File table 41 # Version 5 malformed line/include table. 56 .byte 0 # directory table (invalid as no path component) 76 .asciz "dir1" # Include table 79 .asciz "file1" # File table 102 .asciz "dir1" # Include table 105 .asciz "file1" # File table 131 .asciz "dir1" # Include table 134 .asciz "file1" # File table [all …]
|
/llvm-project/libc/src/__support/HashTable/ |
H A D | table.h | 36 // table size is a power of two) to visit every group of elements exactly once. 64 // about special sizes when check the fullness of the table. in capacity_to_entries() 94 // How many entries are there in the table. in num_of_entries() 97 // How many entries can we store in the table before resizing. in full_capacity() 184 // Nor does the routine check if the table is full. 186 // into a new table. Hence, the requirements are naturally satisfied. in unsafe_insert() 214 // - the new table has enough capacity to hold all the entries in grow() 215 // - there is no duplicate key in the old table in grow() 222 LIBC_INLINE static ENTRY *insert(HashTable *&table, ENTRY item, in insert() 224 auto index = table in insert() 278 HashTable *table = reinterpret_cast<HashTable *>( allocate() local 294 const HashTable &table; global() member [all...] |
/llvm-project/llvm/include/llvm/DebugInfo/GSYM/ |
H A D | GsymCreator.h | 44 /// or LineTable objects, should get the string table offsets by calling 52 /// will sort the FunctionInfo objects, finalize the string table, and do any 65 /// - Address Table 67 /// - File Table 68 /// - String Table 75 /// ADDRESS TABLE 77 /// The address table immediately follows the header in the file and consists 79 /// binary searched for efficient lookups. Addresses in the address table are 81 /// This allows the address table to contain 8, 16, or 32 offsets. This allows 82 /// the address table t [all...] |