/llvm-project/llvm/test/tools/llvm-profdata/ |
H A D | sample-profile-json.test | 1 …-profdata show --sample --json %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=JSON 2 …ow --sample --show-format=json %p/Inputs/sample-profile.proftext | FileCheck %s --check-prefix=JSON 3 JSON: [ 4 JSON-NEXT: { 5 JSON-NEXT: "name": "main", 6 JSON-NEXT: "total": 184019, 7 JSON-NEXT: "head": 0, 8 JSON-NEXT: "body": [ 9 JSON-NEXT: { 10 JSON-NEXT: "line": 4, [all …]
|
/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
H A D | aarch64-symbols-stother.test | 5 …: llvm-readobj --symbols %t.o --elf-output-style=JSON --pretty-print | FileCheck %s --check-prefix… 41 # JSON: "Name": "foo1", 42 # JSON: "Other": { 43 # JSON-NEXT: "Value": 128, 44 # JSON-NEXT: "Flags": [ 45 # JSON-NEXT: { 46 # JSON-NEXT: "Name": "STO_AARCH64_VARIANT_PCS", 47 # JSON-NEXT: "Value": 128 48 # JSON-NEXT: } 49 # JSON-NEXT: ] [all …]
|
H A D | mips-symbols-stother.test | 5 …llvm-readobj --symbols %t.o --elf-output-style=JSON --pretty-print | FileCheck %s --check-prefix=M… 27 # MIPS-JSON: "Name": "foo", 28 # MIPS-JSON: "Other": { 29 # MIPS-JSON-NEXT: "Value": 172, 30 # MIPS-JSON-NEXT: "Flags": [ 31 # MIPS-JSON-NEXT: { 32 # MIPS-JSON-NEXT: "Name": "STO_MIPS_MICROMIPS", 33 # MIPS-JSON-NEXT: "Value": 128 34 # MIPS-JSON-NEXT: }, 35 # MIPS-JSON-NEXT: { [all …]
|
H A D | symbol-visibility.test | 10 …m-readobj --symbols --pretty-print --elf-output-style=JSON %t1.o | FileCheck %s --check-prefix=JSON 34 # JSON: "Name": "default", 35 # JSON: "Other": { 36 # JSON-NEXT: "Value": 0, 37 # JSON-NEXT: "Flags": [] 38 # JSON-NEXT: }, 40 # JSON: "Name": "internal", 41 # JSON: "Other": { 42 # JSON-NEXT: "Value": 1, 43 # JSON-NEXT: "Flags": [ [all …]
|
H A D | note-core-ntfile.test | 6 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print --notes %t.o | FileCheck %s --check-pref… 102 # JSON: "NoteSections": [ 103 # JSON-NEXT: { 104 # JSON-NEXT: "NoteSection": { 105 # JSON-NEXT: "Name": "<?>", 106 # JSON-NEXT: "Offset": 120, 107 # JSON-NEXT: "Size": 148, 108 # JSON-NEXT: "Notes": [ 109 # JSON-NEXT: { 110 # JSON-NEXT: "Owner": "CORE", [all …]
|
H A D | relocations.test | 113 ## Show that JSON relocations are always expanded. 114 # RUN: llvm-readobj -r %t64 --elf-output-style=JSON --pretty-print \ 115 # RUN: | FileCheck %s --check-prefix=JSON-EXPAND-64 116 # RUN: llvm-readobj -r --expand-relocs %t64 --elf-output-style=JSON --pretty-print \ 117 # RUN: | FileCheck %s --check-prefix=JSON-EXPAND-64 119 # JSON-EXPAND-64: "Relocations": [ 120 # JSON-EXPAND-64-NEXT: { 121 # JSON-EXPAND-64-NEXT: "SectionIndex": 2 122 # JSON-EXPAND-64-NEXT: "Relocs": [ 123 # JSON-EXPAND-64-NEXT: { [all …]
|
H A D | note-multiple-sections.test | 5 # RUN: llvm-readelf --elf-output-style=JSON --pretty-print --notes %t1.o | FileCheck %s --check-pre… 6 # CHECK-JSON: "Size": 40, 7 # CHECK-JSON-NEXT: "Notes": [ 8 # CHECK-JSON-NEXT: { 9 # CHECK-JSON-NEXT: "Owner": "CORE", 10 # CHECK-JSON-NEXT: "Data size": 0, 11 # CHECK-JSON-NEXT: "Type": "[[DESC1]]" 12 # CHECK-JSON-NEXT: }, 13 # CHECK-JSON-NEXT: { 14 # CHECK-JSON-NEXT: "Owner": "CORE", [all …]
|
H A D | groups.test | 7 …obj --elf-section-groups %t.o --elf-output-style=JSON --pretty-print | FileCheck %s --check-prefix… 45 # JSON: "Groups": { 46 # JSON-NEXT: "Group": { 47 # JSON-NEXT: "Name": { 48 # JSON-NEXT: "Name": ".group", 49 # JSON-NEXT: "Value": 16 50 # JSON-NEXT: }, 51 # JSON-NEXT: "Index": 1, 52 # JSON-NEXT: "Link": 7, 53 # JSON-NEXT: "Info": 1, [all …]
|
H A D | needed-libs.test | 8 # RUN: llvm-readobj --elf-output-style=JSON --needed-libs --pretty-print %t1 2>&1 \ 9 …-DFILE=%t1 --implicit-check-not=warning: --match-full-lines --strict-whitespace --check-prefix=JSON 24 # JSON: "FileSummary": { 25 # JSON: "NeededLibraries": [{{.*}}warning: '[[FILE]]': string table at offset 0x78: unable … 26 # JSON-NEXT:{{.*}}warning: '[[FILE]]': string table at offset 0x78: unable to read the string at 0x… 27 # JSON-EMPTY: 28 # JSON-NEXT: "<?>", 29 # JSON-NEXT: "<?>", 30 # JSON-NEXT: "aaa", 31 # JSON-NEXT: "bbb", [all …]
|
H A D | pretty-print.test | 1 ## Test the JSON pretty-print flag. 5 ## Test JSON with pretty-print off. 6 # RUN: llvm-readobj --elf-output-style=JSON %t.pretty | \ 22 ## Test JSON with pretty-print on. 23 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.pretty | \
|
H A D | file-summary-json.test | 1 ## Test how we output JSON file summaries. 8 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj | \ 25 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.dir/obj %t.dir/obj | \ 53 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-single | \ 72 # RUN: llvm-readobj --elf-output-style=JSON --pretty-print %t.archive-multiple | \
|
/llvm-project/llvm/test/TableGen/ |
H A D | JSON-locs.td | 1 // RUN: llvm-tblgen -dump-json %s | %python %S/JSON-check.py %s 4 // CHECK: data['Simple']['!locs'] == ['JSON-locs.td:3'] 13 // CHECK: data['DefM1Instance1']['!locs'] == ['JSON-locs.td:7', 'JSON-locs.td:11'] 14 // CHECK: data['DefM1Instance2']['!locs'] == ['JSON-locs.td:8', 'JSON-locs.td:11'] 22 // CHECK: data['DefM2Instance1']['!locs'] == ['JSON-locs.td:7', 'JSON-locs.td:21'] 23 // CHECK: data['DefM2Instance2']['!locs'] == ['JSON-locs.td:8', 'JSON-locs.td:21'] 24 // CHECK: data['DefM2Instance3']['!locs'] == ['JSON-locs.td:17', 'JSON-locs.td:21'] 25 // CHECK: data['DefM2Instance4']['!locs'] == ['JSON-locs.td:18', 'JSON-locs.td:21'] 33 // CHECK: data['DefM3InnerDefMInstance1']['!locs'] == ['JSON-locs.td:7', 'JSON-locs.td:28', 'JSON-l… 34 // CHECK: data['DefM3InnerDefMInstance2']['!locs'] == ['JSON-locs.td:8', 'JSON-locs.td:28', 'JSON-l… [all …]
|
H A D | JSON.td | 1 // RUN: llvm-tblgen -dump-json %s | %python %S/JSON-check.py %s 7 // CHECK: all(all(loc.startswith("JSON.td:") for loc in data[s]['!locs']) for s in data if not s.st… 14 // CHECK: data['D']['!locs'] == ['JSON.td:13'] 42 // A variable not filled in at all has its value set to JSON 47 // Test initializers that map to primitive JSON types 52 // Integer literals should be emitted in the JSON at full 64-bit 53 // precision, for the benefit of JSON readers that preserve that 79 // Test initializers that map to JSON objects containing a 'kind' 124 // in the JSON output looking for the one that has the test integer
|
/llvm-project/clang/test/AST/HLSL/ |
H A D | ast-dump-comment-cbuffe-tbufferr.hlsl |
|
/llvm-project/mlir/test/Pass/ |
H A D | pass-timing.mlir | 2 …ming -mlir-timing-display=list -mlir-output-format=json 2>&1 | FileCheck -check-prefix=LIST-JSON %s 4 … -mlir-timing-display=tree -mlir-output-format=json 2>&1 | FileCheck -check-prefix=PIPELINE-JSON %s 17 // LIST-JSON-NOT: Execution time report 18 // LIST-JSON-NOT: Total Execution Time: 19 // LIST-JSON-NOT: Name 20 // LIST-JSON-DAG: "name": "Canonicalizer"} 21 // LIST-JSON-DAG: "name": "CSE"} 22 // LIST-JSON-DAG: "name": "(A) DominanceInfo"} 23 // LIST-JSON: "name": "Total"} 39 // PIPELINE-JSON-NOT: Execution time report [all …]
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | JSONTransport.cpp | 104 std::string JSON; // Messages may be large, reuse same big buffer. in loop() local 111 if (readRawMessage(JSON)) { in loop() 112 ThreadCrashReporter ScopedReporter([&JSON]() { in loop() 115 OS << JSON << "\n"; in loop() 117 if (auto Doc = llvm::json::parse(JSON)) { in loop() 123 vlog("<<< {0}\n", JSON); in loop() 146 bool readRawMessage(std::string &JSON) { in readRawMessage() argument 147 return Style == JSONStreamStyle::Delimited ? readDelimitedMessage(JSON) in readRawMessage() 148 : readStandardMessage(JSON); in readRawMessage() 150 bool readDelimitedMessage(std::string &JSON); [all …]
|
H A D | LSPBinder.h | 36 using JSON = llvm::json::Value; 42 HandlerMap<void(JSON)> NotificationHandlers; 43 HandlerMap<void(JSON, Callback<JSON>)> MethodHandlers; 44 HandlerMap<void(JSON, Callback<JSON>)> CommandHandlers; 49 virtual void callMethod(llvm::StringRef Method, JSON Params, 50 Callback<JSON> Reply) = 0; 51 virtual void notify(llvm::StringRef Method, JSON Params) = 0; 136 Raw.MethodHandlers[Method] = [Method, Handler, This](JSON RawParams, in method() 137 Callback<JSON> Reply) { in method() 148 Raw.NotificationHandlers[Method] = [Method, Handler, This](JSON RawParams) { in notification() [all …]
|
/llvm-project/clang-tools-extra/test/clang-doc/ |
H A D | basic-project.test | 4 // RUN: FileCheck %s -input-file=%t/docs/index_json.js -check-prefix=JSON-INDEX 10 // JSON-INDEX: async function LoadIndex() { 11 // JSON-INDEX-NEXT: return{ 12 // JSON-INDEX-NEXT: "USR": "{{([0-9A-F]{40})}}", 13 // JSON-INDEX-NEXT: "Name": "", 14 // JSON-INDEX-NEXT: "RefType": "default", 15 // JSON-INDEX-NEXT: "Path": "", 16 // JSON-INDEX-NEXT: "Children": [ 17 // JSON-INDEX-NEXT: { 18 // JSON [all...] |
/llvm-project/libc/cmake/modules/ |
H A D | LibcConfig.cmake | 4 # The JSON parsing commands that CMake provides are rather tedious to use. 5 # Below is a quick reference which tries to map the CMake JSON parsing 8 # * There is no way to iterate over the JSON items. One will first 9 # have to find the number of items using string(JSON ... LENGTH ...) 11 # * The way to get the key from the JSON dictionary is to use the index 12 # of the item and the string(JSON ... MEMBER ... $<index>) function. 13 # * Once you have the key, you can use the string(JSON ... GET ... $<key>) 24 # Each of the above items can be parsed again with the string(JSON ...) 41 string(JSON group_count ERROR_VARIABLE json_error LENGTH ${json_config}) 57 string(JSON group_nam [all...] |
/llvm-project/llvm/test/Other/ |
H A D | statistic.ll | 1 …N: opt < %s -o /dev/null -p=instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON 2 …ll -p=instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON 7 ; JSON: { 8 ; JSON-DAG: "instsimplify.NumSimplified": 1 9 ; JSON: }
|
/llvm-project/llvm/test/tools/llvm-symbolizer/ |
H A D | output-style-json-data.test | 1 ## This test checks JSON output for DATA. 6 # RUN: llvm-symbolizer "DATA %t-no-file.o 0" --output-style=JSON | \ 11 # RUN: llvm-symbolizer "DATA tmp.o Z" --output-style=JSON | \ 18 # RUN: llvm-symbolizer "DATA %t.o 0x10000000" --output-style=JSON | \ 23 # RUN: llvm-symbolizer "DATA %t.o 0" --output-style=JSON | \ 28 # RUN: llvm-symbolizer -e=%t.o "DATA 2" "DATA 8" --output-style=JSON | \
|
H A D | output-style-json-code.test | 1 ## This test checks JSON output for CODE. 3 ## If the addresses are specified on the command-line, the output JSON will 7 # RUN: not llvm-symbolizer --output-style=JSON -e %p/no-file.exe 0 | \ 13 # RUN: llvm-symbolizer --output-style=JSON -e %p/Inputs/addr.exe 0x10000000 | \ 18 # RUN: llvm-symbolizer --output-style=JSON --obj=%p/Inputs/discrim 0x400575 | \ 22 ## In case of stdin input the output will contain a single JSON object for each input string. 25 # RUN: llvm-symbolizer --output-style=JSON --no-inlines -e %p/Inputs/addr.exe < %p/Inputs/addr.inp … 35 # RUN: llvm-symbolizer --output-style=JSON -e %p/Inputs/addr.exe < %p/Inputs/addr.inp | \ 46 # RUN: llvm-addr2line --output-style=JSON -f -i -e %p/Inputs/addr.exe < %p/Inputs/addr.inp | \ 55 ## Note llvm-addr2line without -f does not print the function name in JSON too. [all …]
|
H A D | output-style-json-frame.ll | 1 ;; This test checks JSON output for FRAME. 6 ; RUN: llvm-symbolizer "FRAME %t-no-file.o 0" --output-style=JSON | \ 11 ; RUN: llvm-symbolizer "FRAME tmp.o Z" --output-style=JSON | \ 18 ; RUN: llvm-symbolizer "FRAME %t.o 0x10000000" --output-style=JSON | \ 23 ; RUN: llvm-symbolizer "FRAME %t.o 0" --output-style=JSON | \
|
H A D | source.ll | 22 ;; Check JSON style output. 23 ; RUN: llvm-symbolizer --print-source-context-lines=3 --obj=%t.o 0 --output-style=JSON | \ 24 ; RUN: FileCheck %s --check-prefix=JSON --strict-whitespace --match-full-lines --implicit-check-n… 25 ; JSON:[{"Address":"0x0","ModuleName":"{{.*}}.o","Symbol":[{"Column":13,"Discriminator":0,"FileName…
|
/llvm-project/clang/utils/analyzer/ |
H A D | ProjectMap.py | 8 JSON = Dict[str, Any] variable 157 def _parse(raw_projects: List[JSON]) -> List[ProjectInfo]: argument 161 def _parse_project(raw_project: JSON) -> ProjectInfo: argument 180 def _get_git_params(raw_project: JSON) -> Tuple[str, str]: argument 199 def _convert_infos_to_dicts(projects: List[ProjectInfo]) -> List[JSON]: 203 def _convert_info_to_dict(project: ProjectInfo) -> JSON:
|