/llvm-project/mlir/include/mlir/TableGen/ |
H A D | GenInfo.h | 1 //===- GenInfo.h - Generator info -------------------------------*- C++ -*-===// 23 /// Generator function to invoke. 27 /// Structure to group information about a generator (argument to invoke via 28 /// mlir-tblgen, description, and generator function). 33 GenInfo(StringRef arg, StringRef description, GenFunction generator) in GenInfo() argument 34 : arg(arg), description(description), generator(std::move(generator)) {} in GenInfo() 36 /// Invokes the generator and returns whether the generator failed. 38 assert(generator in invoke() 57 GenFunction generator; global() variable [all...] |
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/cert/ |
H A D | msc51-cpp.cpp | 74 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a constant value w… in f() 76 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a constant value w… in f() 78 …// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: random number generator seeded with a disallowed sourc… in f() 82 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a default argumen… in f() 84 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a constant value … in f() 86 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a constant value … in f() 88 …// CHECK-MESSAGES: :[[@LINE-1]]:30: warning: random number generator seeded with a disallowed sour… in f() 90 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a default argumen… in f() 92 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a constant value … in f() 94 …// CHECK-MESSAGES: :[[@LINE-1]]:11: warning: random number generator seeded with a constant value … in f() [all …]
|
/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/ |
H A D | unique.pass.cpp | 26 template <typename ForwardIt, typename Generator> 29 ForwardIt last2, Generator generator) in operator ()() 33 template <typename ForwardIt, typename Generator> 36 ForwardIt last2, Generator generator) in operator ()() 40 template <typename ForwardIt, typename BinaryPred, typename Generator> 43 ForwardIt last2, BinaryPred pred, Generator generator) in operator ()() 47 template <typename ForwardIt, typename BinaryPred, typename Generator> 50 ForwardIt last2, BinaryPred pred, Generator generator) in operator ()() 55 template <typename Policy, typename ForwardIt, typename Generator> 57 …&& exec, ForwardIt first1, ForwardIt last1, ForwardIt first2, ForwardIt last2, Generator generator) in operator ()() [all …]
|
/llvm-project/polly/lib/External/isl/imath/tests/ |
H A D | imath-test.scm | 40 ;; Create a rational generator with a fixed negative probability. 42 (define (make-rat-generator prob-neg) 46 ;; Create a rational generator with a fixed negative probability. With 50 (define (make-backref-generator prob-neg prob-backref) 58 ;; Just like make-backref-generator, except the second argument is always an 60 (define (make-backref-generator-2 prob-neg prob-backref) 70 (define (make-output-test-generator prob-neg max-dig) 86 ;; Given a test name, an argument generator, and an operation to compute the 89 (define (make-test-case-generator name arg-gen op) 114 ;; Convert a test case generated by a test case generator function into a [all …]
|
/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
H A D | partition.pass.cpp | 69 template <typename BiDirIt, typename Size, typename UnaryOp, typename Generator> 72 Size n, UnaryOp unary_op, Generator generator) in operator ()() 76 template <typename BiDirIt, typename Size, typename UnaryOp, typename Generator> 79 BiDirIt exp_last, Size n, UnaryOp unary_op, Generator generator) in operator ()() 83 template <typename BiDirIt, typename Size, typename UnaryOp, typename Generator> 86 Size n, UnaryOp unary_op, Generator generator) 90 template <typename BiDirIt, typename Size, typename UnaryOp, typename Generator> 93 BiDirIt exp_last, Size n, UnaryOp unary_op, Generator generator) 98 … template <typename Policy, typename BiDirIt, typename Size, typename UnaryOp, typename Generator> 101 Generator generator) in operator ()() [all …]
|
/llvm-project/clang/test/CodeGenCoroutines/ |
H A D | coro-halo.cpp | 9 template <typename T> struct generator { struct 18 generator get_return_object() { return generator{this}; }; in get_return_object() argument 52 generator(generator const &) = delete; argument 53 generator(generator &&rhs) : p(rhs.p) { rhs.p = nullptr; } in generator() argument 55 ~generator() { in ~generator() argument 61 explicit generator(promise_type *p) in generator() function 68 generator<T> seq() { in seq() argument 74 generator<T> take_until(generator<T> &g, T limit) { in take_until() 83 generator<T> multiply(generator<T> &g, T factor) { in multiply() 89 generator<T> add(generator<T> &g, T adder) { in add()
|
/llvm-project/polly/lib/External/isl/interface/ |
H A D | generator.cc | 44 #include "generator.h" 61 if (!generator::is_isl_type(type)) in first_arg_matches_class() 63 return generator::extract_type(type) == name; in first_arg_matches_class() 84 bool generator::is_static(const isl_class &clazz, FunctionDecl *method) in is_static() 93 bool generator::is_mutator(const isl_class &clazz, FunctionDecl *fd) in is_mutator() 117 FunctionDecl *generator::find_by_name(const string &name, bool required) in find_by_name() 132 const std::set<std::string> generator::automatic_conversion_functions = { 145 void generator::extract_automatic_conversion(FunctionDecl *fd) in extract_automatic_conversion() 165 void generator::extract_class_automatic_conversions(const isl_class &clazz) in extract_class_automatic_conversions() 181 void generator::extract_automatic_conversions() in extract_automatic_conversions() [all …]
|
H A D | plain_cpp.h | 8 #include "generator.h" 24 /* Generator for plain C++ bindings. 68 * "generator" is the C++ interface generator printing the classes. 71 plain_cpp_generator &generator; member 74 plain_cpp_generator &generator, bool is_declaration) : in plain_printer() 75 class_printer(os, clazz, generator, is_declaration), in plain_printer() 76 generator(generator) {} in plain_printer() 107 plain_cpp_generator &generator) : in decl_printer() 108 plain_printer(os, clazz, generator, true) {} in decl_printer() 136 plain_cpp_generator &generator) : in impl_printer() [all …]
|
/llvm-project/llvm/test/tools/llvm-profgen/ |
H A D | coroutine.test | 31 struct generator { 36 static auto get_return_object_on_allocation_failure() { return generator{nullptr}; } 37 auto get_return_object() { return generator{handle::from_promise(*this)}; } 49 generator(generator const &) = delete; 50 generator(generator &&rhs) : coro(rhs.coro) { rhs.coro = nullptr; } 51 ~generator() { 57 generator(handle h) : coro(h) {} 61 generator<int> ticker(int count) {
|
/llvm-project/llvm/docs/ |
H A D | Bugpoint.rst | 47 test program, it tries executing it with the selected code generator. If the 48 selected code generator crashes, ``bugpoint`` starts the `crash debugger`_ on 49 the code generator. Otherwise, if the resulting output differs from the 50 reference output, it assumes the difference resulted from a code generator 51 failure, and starts the `code generator debugger`_. 53 Finally, if the output of the selected code generator matches the reference 65 If an optimizer or code generator crashes, ``bugpoint`` will try as hard as it 81 .. _code generator debugger: 83 Code generator debugger 86 The code generator debugger attempts to narrow down the amount of code that is [all …]
|
/llvm-project/third-party/benchmark/ |
H A D | appveyor.yml | 12 generator: "Visual Studio 15 2017" 15 generator: "Visual Studio 15 2017 Win64" 18 generator: "Visual Studio 14 2015" 21 generator: "Visual Studio 14 2015 Win64" 24 generator: "MinGW Makefiles" 33 - if "%generator%"=="MinGW Makefiles" (set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%") 40 …- cmake -G "%generator%" "-DCMAKE_BUILD_TYPE=%configuration%" -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON…
|
/llvm-project/llvm/include/llvm/ADT/ |
H A D | LazyAtomicPointer.h | 20 /// from a lazy generator. Should be reserved for cases where concurrent uses of 21 /// a generator for the same storage is unlikely. 24 /// provided generator ONLY when the value is currently \c nullptr. With 25 /// concurrent calls, only one generator is called and the rest see that value. 105 /// Get the current value, or call \p Generator to generate a value. 106 /// Guarantees that only one thread's \p Generator will run. 108 /// \pre \p Generator doesn't return \c nullptr. 109 T &loadOrGenerate(function_ref<T *()> Generator) { in loadOrGenerate() argument 118 Raw = makeRaw(Generator()); in loadOrGenerate() 119 assert(Raw != getNull() && "Expected non-null from generator"); in loadOrGenerate() [all …]
|
/llvm-project/llvm/unittests/DebugInfo/DWARF/ |
H A D | DwarfGenerator.h | 48 class Generator; variable 62 friend class Generator; 149 /// Instances of these classes are created by instances of the Generator 153 Generator &DG; 160 CompileUnit(Generator &D, uint16_t V, uint8_t A) in CompileUnit() 163 Generator &getGenerator() { return DG; } in getGenerator() 174 /// Instances of this class are created by instances of the Generator class. 212 // Write the contents of the LineUnit to the current section in the generator. 241 /// A DWARF generator. 244 /// calling Generator::addCompileUnit(), and then getting the dwarfgen::DIE from [all …]
|
/llvm-project/flang/runtime/ |
H A D | random-templates.h | 24 using Generator = variable 27 using GeneratedWord = typename Generator::result_type; 29 static_cast<std::uint64_t>(Generator::max() - Generator::min() + 1)}; 35 extern Generator generator; 45 result = generator(); in GetNextValue() 69 GeneratedWord word{(GetNextValue() - generator.min()) & rangeMask}; in Generate()
|
/llvm-project/clang-tools-extra/clang-doc/ |
H A D | Generators.h | 1 //===-- Generators.h - ClangDoc Generator ----------------------*- C++ -*-===// 8 // Generator classes for converting declaration information into documentation 24 class Generator { 26 virtual ~Generator() = default; 38 // Generator::createResources(CDCtx); 48 typedef llvm::Registry<Generator> GeneratorRegistry; 50 llvm::Expected<std::unique_ptr<Generator>> 59 extern template class Registry<clang::doc::Generator>;
|
H A D | Generators.cpp | 1 //===-- Generators.cpp - Generator Registry ----------------------*- C++-*-===// 16 llvm::Expected<std::unique_ptr<Generator>> 18 for (const auto &Generator : GeneratorRegistry::entries()) { in findGeneratorByName() local 19 if (Generator.getName() != Format) in findGeneratorByName() 21 return Generator.instantiate(); in findGeneratorByName() 24 "can't find generator: " + Format); in findGeneratorByName() 45 llvm::Error Generator::createResources(ClangDocContext &CDCtx) { in createResources() 59 void Generator::addInfoToIndex(Index &Idx, const doc::Info *Info) { in addInfoToIndex()
|
/llvm-project/libcxx/test/std/language.support/support.coroutines/end.to.end/ |
H A D | generator.pass.cpp | 20 template <typename Ty> struct generator { struct 29 generator get_return_object() { return generator{this}; }; in get_return_object() argument 65 generator(generator &&rhs) : p(rhs.p) { rhs.p = nullptr; } in generator() argument 67 ~generator() { in ~generator() argument 73 explicit generator(promise_type *promise) in generator() argument 120 generator<int> count(int n) { in count() 125 generator<int> range(int from, int n) { in range()
|
/llvm-project/clang/test/ExtractAPI/ |
H A D | language.c | 17 // Generator version is not consistent across test runs, normalize it. 18 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \ 20 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \ 22 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \ 52 "generator": "?" 136 "generator": "?" 220 "generator": "?"
|
/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/ |
H A D | sparse_generate.mlir | 27 !Generator = !llvm.ptr 35 func.func private @rtsrand(index) -> (!Generator) 36 func.func private @rtrand(!Generator, index) -> (index) 37 func.func private @rtdrand(!Generator) -> () 38 func.func private @shuffle(memref<?xi64>, !Generator) -> () attributes { llvm.emit_c_interface } 63 %g = func.call @rtsrand(%c0) : (index) ->(!Generator) 64 func.call @shuffle(%array, %g) : (memref<?xi64>, !Generator) -> () 72 %ri0 = func.call @rtrand(%g, %c99) : (!Generator, index) -> (index) 94 func.call @rtdrand(%g) : (!Generator) -> ()
|
/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
H A D | DIEAttributeCloner.h | 51 DIEGenerator &Generator, in DIEAttributeCloner() argument 57 InputDieEntry, Generator, FuncAddressAdjustment, in DIEAttributeCloner() 63 DIEGenerator &Generator, in DIEAttributeCloner() argument 69 InputDieEntry, Generator, FuncAddressAdjustment, in DIEAttributeCloner() 88 DIEGenerator &Generator, in DIEAttributeCloner() argument 95 InputDieEntry(InputDieEntry), Generator(Generator), in DIEAttributeCloner() 159 /// Output DIE generator. 160 DIEGenerator &Generator; variable
|
H A D | DIEAttributeCloner.cpp | 130 Generator in clone() 210 return Generator in cloneStringAttr() 225 return Generator in cloneStringAttr() 230 return Generator in cloneStringAttr() 265 return Generator in cloneDieRefAttr() 274 return Generator in cloneDieRefAttr() 291 return Generator.addScalarAttribute(AttrSpec.Attr, NewForm, OutDieOffset) in cloneDieRefAttr() 301 return Generator.addScalarAttribute(AttrSpec.Attr, NewForm, 0xBADDEF).second; in cloneDieRefAttr() 357 return Generator in cloneScalarAttr() 413 return Generator.addLocListAttribute(AttrSpec.Attr, AttrSpec.Form, Value) in cloneScalarAttr() [all …]
|
/llvm-project/third-party/unittest/googletest/include/gtest/ |
H A D | gtest-param-test.h | 135 // Please also note that generator expressions (including parameters to the 137 // This allows the user on one hand, to adjust generator parameters in order 190 // with a particular generator, Google Test creates and runs tests 191 // for each element in the sequence produced by the generator. 209 // - returns a generator producing a sequence of values {start, start+1, 212 // - returns a generator producing a sequence of values {start, start+step, 216 // returns a generator producing a sequence {1, 2, 3, 4}. Range(1, 9, 2) 217 // returns a generator producing {1, 3, 5, 7}. 244 // - returns a generator producing sequences with elements from 247 // - returns a generator producing sequences with elements from [all …]
|
/llvm-project/libcxx/include/__algorithm/ |
H A D | uniform_random_bit_generator_adaptor.h | 28 // Range algorithms only require the given generator to satisfy the `std::uniform_random_bit_generator` concept. 29 // Classic algorithms require the given generator to meet the uniform random bit generator requirements; these 30 // requirements include satisfying `std::uniform_random_bit_generator` and add a requirement for the generator to 33 // To be able to reuse classic implementations, make the given generator meet the classic requirements by wrapping 38 // The generator is not required to be copyable or movable, so it has to be stored as a reference.
|
/llvm-project/clang/include/clang/CodeGen/ |
H A D | ModuleBuilder.h | 49 /// The primary public interface to the Clang code generator. 61 /// Return the module that this code generator is building into. 77 /// Return debug info code generator. 81 /// which has been added to this code generator via a Handle method. 87 /// which has been added to this code generator via a Handle method. 96 /// code generator will schedule the entity for emission if a 97 /// definition has been registered with this code generator.
|
/llvm-project/libcxx/test/std/ranges/range.adaptors/range.elements/iterator/ |
H A D | member_types.compile.pass.cpp | 67 using Generator = decltype(std::views::iota(0, 1) | std::views::transform([](int) { return std::pai… in __anon6aa79f340102() typedef 68 static_assert(std::ranges::random_access_range<Generator>); 70 static_assert(std::same_as<ElementsIter<Generator>::iterator_category, // 78 static_assert(std::same_as<ElementsIter<Generator, 0>::value_type, int>); 80 static_assert(std::same_as<ElementsIter<Generator, 1>::value_type, short>); 86 static_assert(std::same_as<ElementsIter<Generator>::difference_type, // 87 std::ranges::range_difference_t<Generator>>);
|