Home
last modified time | relevance | path

Searched full:llvm (Results 1 – 25 of 12738) sorted by relevance

12345678910>>...510

/llvm-project/mlir/test/Dialect/LLVMIR/
H A Dmem2reg.mlir1 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(mem2reg{region-simplify=false}))" --split-input-file | FileCheck %s
3 // CHECK-LABEL: llvm.func @default_value
4 llvm.func @default_value() -> i32 {
5 // CHECK: %[[UNDEF:.*]] = llvm.mlir.undef : i32
6 %0 = llvm.mlir.constant(1 : i32) : i32
7 %1 = llvm.alloca %0 x i32 {alignment = 4 : i64} : (i32) -> !llvm.ptr
8 %2 = llvm.load %1 {alignment = 4 : i64} : !llvm.ptr -> i32
9 // CHECK: llvm
[all...]
H A Dinlining.mlir3 #file = #llvm.di_file<"foo.mlir" in "/foo/">
4 #variable = #llvm.di_local_variable<scope = #file>
5 #variableAddr = #llvm.di_local_variable<scope = #file>
6 #label = #llvm.di_label<scope = #file>
8 func.func @inner_func_inlinable(%ptr : !llvm.ptr) -> i32 {
9 %0 = llvm.mlir.constant(42 : i32) : i32
10 %stack = llvm.intr.stacksave : !llvm.ptr
11 llvm.store %0, %ptr { alignment = 8 } : i32, !llvm
[all...]
H A Dsroa.mlir1 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(sroa))" --split-input-file | FileChec…
3 // CHECK-LABEL: llvm.func @basic_struct
4 llvm.func @basic_struct() -> i32 {
5 // CHECK: %[[SIZE:.*]] = llvm.mlir.constant(1 : i32)
6 %0 = llvm.mlir.constant(1 : i32) : i32
7 // CHECK: %[[ALLOCA:.*]] = llvm.alloca %[[SIZE]] x i32
8 …%1 = llvm.alloca %0 x !llvm.struct<"foo", (i32, f64, i32)> {alignment = 8 : i64} : (i32) -> !llvm.…
9 …%2 = llvm.getelementptr inbounds %1[0, 2] : (!llvm.ptr) -> !llvm.ptr, !llvm.struct<"foo", (i32, f6…
10 // CHECK: %[[RES:.*]] = llvm.load %[[ALLOCA]]
11 %3 = llvm.load %2 : !llvm.ptr -> i32
[all …]
H A Dparameter-attrs-invalid.mlir5 // expected-error@below {{"llvm.noalias" attribute attached to non-pointer LLVM type}}
6 llvm.func @invalid_noalias_arg_type(%0 : i32 {llvm.noalias})
10 // expected-error@below {{"llvm.noalias" should be a unit attribute}}
11 llvm.func @invalid_noalias_attr_type(%0 : !llvm.ptr {llvm.noalias = 10 : i32})
15 // expected-error@below {{"llvm.readonly" attribute attached to non-pointer LLVM type}}
16 llvm.func @invalid_readonly_arg_type(%0 : i32 {llvm.readonly})
20 // expected-error@below {{"llvm.readonly" should be a unit attribute}}
21 llvm.func @invalid_readonly_attr_type(%0 : i32 {llvm.readonly = i32})
25 // expected-error@below {{"llvm.nest" attribute attached to non-pointer LLVM type}}
26 llvm.func @invalid_nest_arg_type(%0 : i32 {llvm.nest})
[all …]
H A Dsroa-intrinsics.mlir1 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(sroa))" --split-input-file | FileCheck %s
3 // CHECK-LABEL: llvm.func @memset
4 llvm.func @memset() -> i32 {
5 // CHECK-DAG: %[[ALLOCA_LEN:.*]] = llvm.mlir.constant(1 : i32) : i32
6 // CHECK-DAG: %[[ALLOCA:.*]] = llvm.alloca %[[ALLOCA_LEN]] x i32
7 // CHECK-DAG: %[[MEMSET_VALUE:.*]] = llvm.mlir.constant(42 : i8) : i8
9 // CHECK-DAG: %[[MEMSET_LEN:.*]] = llvm.mlir.constant(4 : i32) : i32
10 %0 = llvm.mlir.constant(1 : i32) : i32
11 %1 = llvm.alloca %0 x !llvm
[all...]
H A Dfunc.mlir4 // RUN: mlir-translate -mlir-to-llvmir -split-input-file -verify-diagnostics %s | FileCheck %s --check-prefix=CHECK-LLVM
7 // GENERIC: "llvm.func"
8 // GENERIC-SAME: function_type = !llvm.func<void ()>
11 // CHECK: llvm.func @foo()
12 "llvm.func" () ({
13 }) {sym_name = "foo", function_type = !llvm.func<void ()>} : () -> ()
15 // GENERIC: "llvm.func"
16 // GENERIC-SAME: function_type = !llvm.func<i64 (i64, i64)>
19 // CHECK: llvm.func @bar(i64, i64) -> i64
20 "llvm
[all...]
H A Droundtrip.mlir6 llvm.func @baz()
9 // CHECK-SAME: (%[[I32:.*]]: i32, %[[FLOAT:.*]]: f32, %[[PTR1:.*]]: !llvm.ptr, %[[PTR2:.*]]: !llvm.ptr, %[[BOOL:.*]]: i1, %[[VPTR1:.*]]: !llvm.vec<2 x ptr>)
11 %arg2: !llvm.ptr, %arg3: !llvm.ptr,
12 %arg4: i1, %arg5 : !llvm.vec<2x!llvm.ptr>) {
15 // CHECK: {{.*}} = llvm.add %[[I32]], %[[I32]] : i32
16 // CHECK: {{.*}} = llvm
[all...]
H A Dinlining-alias-scopes.mlir3 #alias_scope_domain = #llvm.alias_scope_domain<id = distinct[0]<>, description = "foo">
4 #alias_scope = #llvm.alias_scope<id = distinct[1]<>, domain = #alias_scope_domain, description = "foo load">
5 #alias_scope1 = #llvm.alias_scope<id = distinct[2]<>, domain = #alias_scope_domain, description = "foo store">
7 // CHECK-DAG: #[[FOO_DOMAIN:.*]] = #llvm.alias_scope_domain<{{.*}}>
8 // CHECK-DAG: #[[$FOO_LOAD:.*]] = #llvm.alias_scope<id = {{.*}}, domain = #[[FOO_DOMAIN]], description = {{.*}}>
9 // CHECK-DAG: #[[$FOO_STORE:.*]] = #llvm.alias_scope<id = {{.*}}, domain = #[[FOO_DOMAIN]], description = {{.*}}>
11 // CHECK-DAG: #[[BAR_DOMAIN:.*]] = #llvm.alias_scope_domain<{{.*}}>
12 // CHECK-DAG: #[[$BAR_LOAD:.*]] = #llvm.alias_scope<id = {{.*}}, domain = #[[BAR_DOMAIN]], description = {{.*}}>
13 // CHECK-DAG: #[[$BAR_STORE:.*]] = #llvm.alias_scope<id = {{.*}}, domain = #[[BAR_DOMAIN]], description = {{.*}}>
15 // CHECK-LABEL: llvm
[all...]
H A Dconstant-folding.mlir1 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(canonicalize))" --split-input-file | FileCheck %s
3 // CHECK-LABEL: llvm.func @zext_basic
4 llvm.func @zext_basic() -> i64 {
5 %0 = llvm.mlir.constant(1 : i32) : i32
6 %1 = llvm.zext %0 : i32 to i64
7 // CHECK: %[[RES:.*]] = llvm.mlir.constant(1 : i64) : i64
8 // CHECK: llvm.return %[[RES]] : i64
9 llvm.return %1 : i64
12 // CHECK-LABEL: llvm.func @zext_neg
13 llvm
[all...]
H A Dmem2reg-intrinsics.mlir1 // RUN: mlir-opt %s --pass-pipeline="builtin.module(llvm.func(mem2reg))" --split-input-file | FileCheck %s
3 // CHECK-LABEL: llvm.func @basic_memset
5 llvm.func @basic_memset(%memset_value: i8) -> i32 {
6 %0 = llvm.mlir.constant(1 : i32) : i32
7 %1 = llvm.alloca %0 x i32 {alignment = 4 : i64} : (i32) -> !llvm.ptr
8 %memset_len = llvm.mlir.constant(4 : i32) : i32
9 "llvm.intr.memset"(%1, %memset_value, %memset_len) <{isVolatile = false}> : (!llvm.ptr, i8, i32) -> ()
10 // CHECK-NOT: "llvm
[all...]
H A Dcanonicalize.mlir1 // RUN: mlir-opt --pass-pipeline='builtin.module(llvm.func(canonicalize{test-convergence}))' %s -sp…
4 llvm.func @fold_icmp_eq(%arg0 : i32) -> i1 {
5 // CHECK: %[[C0:.*]] = llvm.mlir.constant(true) : i1
6 %0 = llvm.icmp "eq" %arg0, %arg0 : i32
7 // CHECK: llvm.return %[[C0]]
8 llvm.return %0 : i1
14 llvm.func @fold_icmp_ne(%arg0 : vector<2xi32>) -> vector<2xi1> {
15 // CHECK: %[[C0:.*]] = llvm.mlir.constant(dense<false> : vector<2xi1>) : vector<2xi1>
16 %0 = llvm.icmp "ne" %arg0, %arg0 : vector<2xi32>
17 // CHECK: llvm.return %[[C0]]
[all …]
H A Dmem2reg-dbginfo.mlir1 // RUN: mlir-opt %s --pass-pipeline='builtin.module(llvm.func(mem2reg{region-simplify=false}))' | F…
3 llvm.func @use(i64)
4 llvm.func @use_ptr(!llvm.ptr)
6 #di_basic_type = #llvm.di_basic_type<tag = DW_TAG_base_type, name = "ptr sized type", sizeInBits = …
7 #di_file = #llvm.di_file<"test.ll" in "">
8 #di_compile_unit = #llvm.di_compile_unit<id = distinct[0]<>, sourceLanguage = DW_LANG_C_plus_plus_1…
9 #di_subprogram = #llvm.di_subprogram<compileUnit = #di_compile_unit, scope = #di_file, name = "blah…
10 // CHECK: #[[$VAR:.*]] = #llvm.di_local_variable<{{.*}}name = "ptr sized var"{{.*}}>
11 #di_local_variable = #llvm.di_local_variable<scope = #di_subprogram, name = "ptr sized var", file =…
12 #di_local_variable_2 = #llvm.di_local_variable<scope = #di_subprogram, name = "ptr sized var 2", fi…
[all …]
/llvm-project/libcxxabi/test/
H A Dtest_demangle.pass.cpp3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
14 // UNSUPPORTED: using-built-library-before-llvm-20
657 {"_ZN4llvm8DenseMapIjcNS_12DenseMapInfoIjEENS1_IcEEE6insertERKSt4pairIjcE", "llvm::DenseMap<unsigned int, char, llvm::DenseMapInfo<unsigned int>, llvm::DenseMapInfo<char>>::insert(std::pair<unsigned int, char> const&)"},
658 {"_ZN4llvm8DenseMapIjcNS_12DenseMapInfoIjEENS1_IcEEE16InsertIntoBucketERKjRKcPSt4pairIjcE", "llvm::DenseMap<unsigned int, char, llvm
[all...]
/llvm-project/clang/utils/TableGen/
H A DTableGenBackends.h3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
20 namespace llvm {
23 } // namespace llvm
27 void EmitClangDeclContext(const llvm::RecordKeeper &RK, llvm::raw_ostream &OS);
35 void EmitClangASTNodes(const llvm::RecordKeeper &RK, llvm
[all...]
/llvm-project/llvm/test/tools/llvm-readobj/ELF/
H A Dversioninfo.test1 ## Test how llvm-readobj/llvm-readelf tools dump versioning sections.
6 # RUN: llvm-readobj -V %t1 | FileCheck %s --check-prefix=LLVM
7 # RUN: llvm-readelf -V %t1 | FileCheck %s --check-prefix=GNU
97 # LLVM: VersionSymbols [
98 # LLVM-NEXT: Symbol {
99 # LLVM-NEXT: Version: 0
100 # LLVM-NEXT: Name:
101 # LLVM-NEXT: }
102 # LLVM-NEXT: Symbol {
103 # LLVM-NEXT: Version: 2
[all …]
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dpr15031.ll19 %"class.llvm::MachineMemOperand" = type { %"struct.llvm::MachinePointerInfo", i64, i32, ptr, ptr }
20 %"struct.llvm::MachinePointerInfo" = type { ptr, i64 }
21 %"class.llvm::Value" = type { ptr, i8, i8, i16, ptr, ptr, ptr }
22 %"class.llvm::Type" = type { ptr, i32, i32, ptr }
23 %"class.llvm::LLVMContext" = type { ptr }
24 %"class.llvm::LLVMContextImpl" = type opaque
25 %"class.llvm::Use" = type { ptr, ptr, %"class.llvm::PointerIntPair" }
26 %"class.llvm::PointerIntPair" = type { i64 }
27 %"class.llvm::StringMapEntry" = type opaque
28 %"class.llvm::MDNode" = type { %"class.llvm::Value", %"class.llvm::FoldingSetImpl::Node", i32, i32 }
[all …]
/llvm-project/.github/
H A Dnew-prs-labeler.yml48 - llvm/**/Frontend/HLSL/**/*
53 llvm-lit:
54 - llvm/utils/lit/**/*
57 - llvm/**/ProfileData/**/*
58 - llvm/**/SampleProfile*
59 - llvm/**/CodeGen/MIRSampleProfile*
60 - llvm/lib/Transforms/Instrumentation/CGProfile.cpp
61 - llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
62 - llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
63 - llvm/li
[all...]
/llvm-project/utils/bazel/llvm-project-overlay/llvm/unittests/
H A DBUILD.bazel1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 load("//llvm:tblgen.bzl", "gentbl")
26 "//llvm:Core",
27 "//llvm:Support",
28 "//llvm:TestingSupport",
29 "//llvm:config",
51 "//llvm:Analysis",
52 "//llvm
[all...]
/llvm-project/llvm/utils/gn/secondary/llvm/test/
H A DBUILD.gn1 import("//llvm/include/llvm/Config/config.gni")
2 import("//llvm/lib/DebugInfo/PDB/enable_dia.gni")
3 import("//llvm/lib/Target/targets_string.gni")
4 import("//llvm/triples.gni")
5 import("//llvm/utils/gn/build/buildflags.gni")
6 import("//llvm/utils/gn/build/libs/curl/enable.gni")
7 import("//llvm/utils/gn/build/libs/pthread/enable.gni")
8 import("//llvm/utils/gn/build/libs/xar/enable.gni")
9 import("//llvm/util
[all...]
/llvm-project/libc/include/
H A DCMakeLists.txt11 add_subdirectory(llvm-libc-macros)
12 add_subdirectory(llvm-libc-types)
21 # https://github.com/llvm/llvm-project/issues/117254
38 .llvm-libc-types.locale_t
47 .llvm-libc-types.ino_t
48 .llvm-libc-types.DIR
49 .llvm-libc-types.struct_dirent
57 .llvm-libc-macros.fcntl_macros
58 .llvm
[all...]
/llvm-project/utils/bazel/llvm-project-overlay/bolt/
H A DBUILD.bazel1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
20 name = "llvm-bolt-heatmap",
28 "//llvm:AllTargetsAsmParsers",
29 "//llvm:AllTargetsDisassemblers",
30 "//llvm:MC",
31 "//llvm:Object",
32 "//llvm:Support",
43 "//llvm
[all...]
/llvm-project/llvm/include/llvm/
H A DLinkAllPasses.h1 //===- llvm/LinkAllPasses.h ------------ Reference All Passes ---*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
17 #include "llvm/ADT/Statistic.h"
18 #include "llvm/Analysis/AliasAnalysisEvaluator.h"
19 #include "llvm/Analysis/AliasSetTracker.h"
20 #include "llvm/Analysis/BasicAliasAnalysis.h"
21 #include "llvm/Analysi
[all...]
/llvm-project/clang/test/CodeGen/
H A Dbuiltins-hexagon.c2 … hexagonv65 -target-feature +hvxv65 -target-feature +hvx-length128b -emit-llvm %s -o - | FileCheck…
9 // CHECK: @llvm.hexagon.A2.abs in test()
11 // CHECK: @llvm.hexagon.A2.absp in test()
13 // CHECK: @llvm.hexagon.A2.abssat in test()
15 // CHECK: @llvm.hexagon.A2.add in test()
17 // CHECK: @llvm.hexagon.A2.addh.h16.hh in test()
19 // CHECK: @llvm.hexagon.A2.addh.h16.hl in test()
21 // CHECK: @llvm.hexagon.A2.addh.h16.lh in test()
23 // CHECK: @llvm.hexagon.A2.addh.h16.ll in test()
25 // CHECK: @llvm.hexagon.A2.addh.h16.sat.hh in test()
[all …]
/llvm-project/llvm/bindings/ocaml/debuginfo/
H A Dllvm_debuginfo.ml1 (*===-- llvm_debuginfo.ml - LLVM OCaml Interface --------------*- OCaml -*-===*
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
151 external get_module_debug_metadata_version : Llvm.llmodule -> int
154 external dibuilder : Llvm.llmodule -> lldibuilder = "llvm_dibuilder"
162 file_ref:Llvm.llmetadata ->
174 Llvm.llmetadata
178 lldibuilder -> filename:string -> directory:string -> Llvm
[all...]
/llvm-project/llvm/test/
H A DCMakeLists.txt71 llvm-addr2line
72 llvm-ar
73 llvm-as
74 llvm-bcanalyzer
75 llvm-bitcode-strip
76 llvm-c-test
77 llvm-cat
78 llvm-cfi-verify
79 llvm-cgdata
80 llvm
[all...]

12345678910>>...510