/llvm-project/clang/test/Analysis/ |
H A D | checker-plugins.c | 9 // RUN: -analyzer-checker='example.MainCallChecker' 11 // Test that the MainCallChecker example analyzer plugin loads and runs. 21 // RUN: -analyzer-checker=example.DependendentChecker \ 25 // CHECK-IMPLICITLY-ENABLED: example.Dependency 26 // CHECK-IMPLICITLY-ENABLED: example.DependendentChecker 30 // RUN: -analyzer-checker=example.DependendentChecker \ 31 // RUN: -analyzer-disable-checker=example.Dependency \ 35 // CHECK-IMPLICITLY-DISABLED-NOT: example.Dependency 36 // CHECK-IMPLICITLY-DISABLED-NOT: example.DependendentChecker 40 // RUN: -analyzer-checker=example.MyChecker \ [all …]
|
/llvm-project/llvm/test/Transforms/RewriteStatepointsForGC/ |
H A D | strip-invalid-attributes.ll | 9 …ne ptr addrspace(1) @deref_arg(ptr addrspace(1) dereferenceable(16) %arg) gc "statepoint-example" { 15 …ne dereferenceable(16) ptr addrspace(1) @deref_ret(ptr addrspace(1) %arg) gc "statepoint-example" { 21 …(1) @deref_or_null_arg(ptr addrspace(1) dereferenceable_or_null(16) %arg) gc "statepoint-example" { 27 …le_or_null(16) ptr addrspace(1) @deref_or_null_ret(ptr addrspace(1) %arg) gc "statepoint-example" { 33 define ptr addrspace(1) @noalias_arg(ptr addrspace(1) noalias %arg) gc "statepoint-example" { 39 define noalias ptr addrspace(1) @noalias_ret(ptr addrspace(1) %arg) gc "statepoint-example" { 45 define ptr addrspace(1) @nofree(ptr addrspace(1) nofree %arg) nofree gc "statepoint-example" { 46 ; CHECK: define ptr addrspace(1) @nofree(ptr addrspace(1) %arg) gc "statepoint-example" { 51 define ptr addrspace(1) @nosync(ptr addrspace(1) %arg) nosync gc "statepoint-example" { 52 ; CHECK: define ptr addrspace(1) @nosync(ptr addrspace(1) %arg) gc "statepoint-example" { [all …]
|
H A D | deref-pointers.ll | 17 … ptr addrspace(1) @test_deref_arg(ptr addrspace(1) dereferenceable(4) %a) gc "statepoint-example" { 23 …) @test_deref_or_null_arg(ptr addrspace(1) dereferenceable_or_null(4) %a) gc "statepoint-example" { 29 define ptr addrspace(1) @test_noalias_arg(ptr addrspace(1) noalias %a) gc "statepoint-example" { 35 define ptr addrspace(1) @test_deref_retval() gc "statepoint-example" { 44 define ptr addrspace(1) @test_deref_or_null_retval() gc "statepoint-example" { 53 define ptr addrspace(1) @test_noalias_retval() gc "statepoint-example" { 62 define i8 @test_md(ptr addrspace(1) %ptr) gc "statepoint-example" { 72 define i8 @test_md_new(ptr addrspace(1) %ptr) gc "statepoint-example" { 81 define ptr addrspace(1) @test_decl_only_attribute(ptr addrspace(1) %ptr) gc "statepoint-example" { 91 define ptr addrspace(1) @test_decl_only_noalias(ptr addrspace(1) %ptr) gc "statepoint-example" { [all …]
|
/llvm-project/clang/test/Frontend/ |
H A D | plugin-attribute.cpp | 7 void fn1a() __attribute__((example)) { in fn1a() 8 __attribute__((example)) for (int i = 0; i < 9; ++i) {} in fn1b() 10 [[example]] void fn1b() { in fn2() 11 [[example]] for (int i = 0; i < 9; ++i) {} 13 [[plugin::example]] void fn1c() { 14 [[plugin::example]] for (int i = 0; i < 9; ++i) {} 16 void fn2() __attribute__((example("somestring", 1, 2.0))) { 17 __attribute__((example("abc", 3, 4.0))) for (int i = 0; i < 9; ++i) {} 19 template <int N> void template_fn() __attribute__((example("template", N))) { 20 __attribute__((example("de 18 class Example { global() class [all...] |
H A D | plugin-attribute-pp.cpp | 11 #if __has_attribute(example) 12 // CHECK: has_attribute(example) was true 13 has_attribute(example) was true 15 #if HAS_ATTR(example) 16 // CHECK: has_$LANG_attribute(example) was true 17 has_$LANG_attribute(example) was true
|
/llvm-project/clang/examples/Attribute/ |
H A D | Attribute.cpp | 9 // Example clang plugin which adds an an annotation to file-scope declarations 10 // with the 'example' attribute. 30 // `ParsedAttrInfo` can hold, we will not use that much in this example. in ExampleAttrInfo() 32 // GNU-style __attribute__(("example")) and C++/C23-style [[example]] and in ExampleAttrInfo() 33 // [[plugin::example]] supported. in ExampleAttrInfo() 34 static constexpr Spelling S[] = {{ParsedAttr::AS_GNU, "example"}, in ExampleAttrInfo() 35 {ParsedAttr::AS_C23, "example"}, in ExampleAttrInfo() 36 {ParsedAttr::AS_CXX11, "example"}, in ExampleAttrInfo() 37 {ParsedAttr::AS_CXX11, "plugin::example"}}; in ExampleAttrInfo() [all...] |
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/objc/ |
H A D | nsdate-formatter.rst | 14 * | **Example 1:** Input Date: `29 December 2014` ; Format String: `yyyy-ww`; 17 * | **Example 2:** Input Date: `29 December 2014` ; Format String: `dd-MM-yyyy (ww-YYYY)`; 22 * | **Example:** Input Date: `29 December 2014` ; Format String: `F-MM`; 27 * | **Example:** Input Date: `29 December 2014` ; Format String: `F-EE` 32 * | **Example:** Input Date: `29 December 2014` ; Format String: `WW-yyyy` 37 * | **Example 1:** Input Date: `29 December 2014` ; Format String: `YYYY-QQ` 40 * | **Example 2:** Input Date: `29 December 2014` ; Format String: `ww-YYYY (QQ-yyyy)` 45 * | **Example 1:** Input Date: `29 December 2014` ; Format String: `YYYY-MM` 48 * | **Example 2:** Input Date: `29 December 2014` ; Format String: `ww-YYYY (MM-yyyy)` 53 * | **Example 1:** Input Date: `29 December 2014` ; Format String: `YYYY-DD` [all …]
|
/llvm-project/libc/examples/ |
H A D | README.md | 3 This directory contains a few example programs which illustrate how one can set 11 Each example has its own directory which contain the source code and the CMake 12 build set up. To build an example, create a directory named `build` in the 13 example's directory: 16 cd <example directory> 21 Each example can be built to use the libc in either 30 Before you can link an example against the overlay libc, you will have to 33 Once installed, to build an example against it, you have specify the directory 42 Next, if `Ninja` is used for `<GEN>`, you can build the example as follows: 45 ninja <example name> [all …]
|
/llvm-project/clang/www/analyzer/ |
H A D | potential_checkers.html | 26 <col class="namedescr"><col class="example"><col class="progress"> 27 <thead><tr><td>Name, Description</td><td>Example</td><td>Progress</td></tr></thead> 36 <div class="example"><pre> 48 <div class="example"><pre> 72 <div class="example"><pre> 79 <div class="example"><pre> 94 Example 2</a>.</p></div></div></td> 96 <div class="example"><pre> 114 <div class="example"><pre> 122 <div class="example"><pr [all...] |
H A D | implicit_checks.html | 33 <colgroup><col class="namedescr"><col class="example"></colgroup> 34 <thead><tr><td>Name, Description</td><td>Example</td></tr></thead> 42 <div class="example"><pre> 60 <div class="example"><pre> 85 <div class="example"><pre> 101 <div class="example"><pre> 107 <div class="example"><pre> 130 <colgroup><col class="namedescr"><col class="example"></colgroup> 131 <thead><tr><td>Name, Description</td><td>Example</td></tr></thead> 139 <div class="example"><pre> [all …]
|
/llvm-project/clang/docs/ |
H A D | DebuggingCoroutines.rst | 48 For example: 58 example, though this is not strictly correct. More technically, this should 106 of the coroutine frame. For example, if the address of a coroutine frame is 245 In the above example, the `__coro_index` value of `1` means the coroutine 263 properly express the intended value in the source code. For example: 324 For example: 374 Here is an example to print the asynchronous stack for the normal task implementation. 378 // debugging-example.cpp 465 In the example, the ``task`` coroutine holds a ``continuation`` field, 501 # In the example, th [all...] |
H A D | DataFlowAnalysisIntro.md | 43 We would like to explain data flow analysis while discussing an example. Let's 48 void Example(int n) { 116 information that we track. In this case, we can, for example, arbitrarily limit 168 In this example we show how to model uninitialized variables only to demonstrate 183 Let's consider a slightly more complex example, and think about how we can 187 void Example(int n) { 227 * Statements, for example, assignments. 229 * Joins in control flow, for example, ones that appear at the end of "if" 235 program point. For example, the transfer function for assignment ignores the 314 In the previous example where we tried to figure out what values a variable can [all …]
|
H A D | ClangTransformerTutorial.rst | 32 like "``s`` is a ``string``." Even the first example ("warn ...") shares this form, 64 Example: style-checking names 79 example, the pattern (``functionDecl(...)``) identifies the declaration of the 92 Example: renaming a function 95 Now, let's extend this example to a *transformation*; specifically, the second 96 example above: 104 In this example, the pattern (``declRefExpr(...)``) identifies any *reference* to 106 example. Our edit (``changeTo(...)``) says to *change* the code matched by the 110 Here are some example changes that this rule would make: 122 Example [all...] |
/llvm-project/llvm/docs/AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack/ |
H A D | AMDGPUDwarfExtensionAllowLocationDescriptionOnTheDwarfExpressionStack.md | 59  74 For example, a GPU may have a per thread block address space that is implemented 78 A GPU may also use global memory in a non linear manner. For example, to support 102 representations. For example: 117 For example, a source language variable location could be: 153 The first example is for an operation expression associated with a DIE attribute 158  160 In this hypothetical example, the compiler has allocated an array descriptor in 172  180  [all …]
|
/llvm-project/mlir/include/mlir/Dialect/SPIRV/IR/ |
H A D | SPIRVLogicalOps.td | 63 #### Example: 89 #### Example: 115 #### Example: 141 #### Example: 167 #### Example: 190 #### Example: 213 #### Example: 239 #### Example: 265 #### Example: 291 #### Example [all...] |
H A D | SPIRVCLOps.td | 128 #### Example: 151 #### Example: 174 #### Example: 197 #### Example: 220 #### Example: 243 #### Example: 266 #### Example: 290 #### Example: 311 #### Example: 332 #### Example [all...] |
H A D | SPIRVGLOps.td | 119 #### Example: 141 #### Example: 165 #### Example: 188 #### Example: 211 #### Example: 234 #### Example: 260 #### Example: 286 #### Example: 312 #### Example: 335 #### Example [all...] |
H A D | SPIRVArithmeticOps.td | 96 #### Example: 119 #### Example: 146 #### Example: 168 #### Example: 183 general floating-point rules regarding, for example, subnormals and NaN 194 #### Example: 221 #### Example: 243 #### Example: 272 #### Example: 312 #### Example: [all …]
|
/llvm-project/llvm/docs/ |
H A D | TestingGuide.rst | 66 somewhere underneath this directory. For example, it can be a small 78 for an example of such test. 156 variable to pass the required options to lit. For example, you can use: 165 script which is built as part of LLVM. For example, to run the 255 Below is an example of legal RUN lines in a ``.ll`` file: 289 For example to generate assertions in an :program:`llc`-based test, after 353 (for example, "See PR999 for more details"). 355 example, do not use patterns like ``br i1 undef``, which are likely to break 359 - Outside PhaseOrdering tests, only run a minimal set of passes. For example, 373 using ``split-file`` to extract them. For example, [all...] |
H A D | MemoryModelRelaxationAnnotations.rst | 13 by the memory model. For example: 52 For example: 55 :caption: Example: Tags in Metadata 72 :caption: Example: Set of Tags in Metadata 94 :caption: Short Syntax Example 127 For example, consider two tags ``foo:bar`` and 145 Whether the following example synchronizes with another sequence depends 156 Example 1: 166 e.g. In Example 1, a store-release to a location in ``addrspace(1)`` wants to 169 Example 2: [all …]
|
/llvm-project/mlir/docs/ |
H A D | CAPI.md | 25 dialect-specific way, for example, by implementing an ODS backend. 45 for creation functions). For example, `mlirOperationGetNumOperands` inspects an 54 example, `mlirOperationCreate`; 56 `mlirYTake<...>`, for example `mlirOperationStateTakeRegion`. 60 be taken by the callee, for example `mlirRegionAppendOwnedBlock`. 63 ownership, they have the form `mlirX<...>Get`. For example, 82 MLIR objects can form type hierarchies in C++. For example, all IR classes 95 an instance of `Y`. For example, `int MlirTypeIsAInteger(MlirType)`. 142 zero-based contiguous integer index, typically arrays. For example, an 144 several such components. For example, an `MlirOperation` has attributes, [all …]
|
/llvm-project/clang/lib/Analysis/plugins/CheckerOptionHandling/ |
H A D | CheckerOptionHandling.cpp | 16 llvm::outs() << "Example option is set to " in registerMyChecker() 31 "example.MyChecker", "Example Description", in clang_registerCheckers() 32 "example.mychecker.documentation.nonexistent.html", in clang_registerCheckers() 36 /*CheckerFullName*/ "example.MyChecker", in clang_registerCheckers() 39 /*Description*/ "This is an example checker opt.", in clang_registerCheckers()
|
/llvm-project/llvm/test/YAMLParser/ |
H A D | plain-characters.test | 2 # Example from https://yaml.org/spec/1.2.2/#example-plain-characters 9 - https://example.com/foo#bar 15 https://example.com/foo#bar ] 22 # CHECK-NEXT: !!str "https://example.com/foo#bar", 28 # CHECK-NEXT: !!str "https://example.com/foo#bar",
|
/llvm-project/lldb/examples/synthetic/recognizer_function/ |
H A D | lldb-commands | 1 command script import ./example.py 2 type summary add --expand --recognizer-function --python-function example.message_summary example.i… 3 type synth add --recognizer-function --python-class example.MessageChildProvider example.is_message…
|
/llvm-project/clang/include/clang/Basic/ |
H A D | arm_neon_incl.td | 54 // example: (op "+", $p0, $p1) -> "__p0 + __p1". 62 // example: (call "vget_high", $p0) -> "vgetq_high_s16(__p0)" 69 // example: (call_mangled "vfma_lane", $p0, $p1) -> "vfma_lane(__p0, __p1)" 82 // - $X - Take the type of parameter/variable X. For example: 86 // for example: (cast "uint32x4_t", $p0). 94 // example: (cast "R", "U", $p0) -> "(uint32x4_t)__p0" (assuming the return 107 // example: (dup $p1) -> "(uint32x2_t) {__p1, __p1}" (assuming the base type 112 // example: (dup_typed $p1, $p2) -> "(float16x4_t) {__p2, __p2, __p2, __p2}" 121 // example: [(save_temp $var, (call "foo", $p0)), 128 // example [all...] |