Home
last modified time | relevance | path

Searched defs:identity (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project/llvm/include/llvm/ADT/
H A Didentity.h22 template <class Ty> struct identity { struct
23 using is_transparent = void;
24 using argument_type = Ty;
26 Ty &operator()(Ty &self) const { in operator()
29 const Ty &operator()(const Ty &self) const { in operator()
/llvm-project/compiler-rt/lib/orc/
H A Dstl_extras.h24 template <class Ty> struct identity { struct
25 is_transparentidentity global() argument
26 argument_typeidentity global() argument
28 operatoridentity operator() argument
29 operatoridentity operator() argument
/llvm-project/clang/test/SemaObjCXX/
H A Dinstantiate-message.mm10 struct identity { struct
17 R *result2 = [typename identity<T>::type method1:arg1]; argument
21 template void test_class_method<ClassMethods, ClassMethods>(void*);
22 template void test_class_method<ClassMethods, ClassMethods>(int*);
24 @interface ClassMethods2
H A Darc-templates.mm114 template<typename T> struct identity { }; struct
116 template<typename T> identity<T> accept_strong_ptr(__strong T*); argument
117 template<typename T> identity<T> accept_strong_ref(__strong T&); argument
119 template<typename T> identity<T> accept_any_ptr(T*); argument
120 template<typename T> identity<T> accept_any_ref(T&); argument
128 identity<id> res1 = accept_strong_ptr(sip); argument
148 identity<A *> res1 = accept_strong_ptr(sip); argument
/llvm-project/clang/test/CXX/expr/expr.prim/expr.prim.req/
H A Dequivalence.cpp6 template<typename T> struct identity { using type = T; }; argument
28 template<typename T> struct identity { using type = T; }; struct
30 template<typename T> requires requires { typename ns::identity<T>::type; } // expected-error{{requi…
H A Dtype-requirement.cpp7 template<typename T> struct identity { using type = T; }; argument
78 template<typename T, typename U> struct identity {}; struct
/llvm-project/clang/test/CXX/over/over.match/over.match.best/over.best.ics/over.ics.user/
H A Dp3-0x.cpp4 template<typename T> struct identity struct
5 { typedef T type; };
/llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.partial/
H A Dp11.cpp11 struct identity { struct
16 T* f2(int, typename identity<T>::type = 0); argument
/llvm-project/clang/test/Parser/
H A Dcxx2a-concepts-requires-expr.cpp61 template<typename T> struct identity { using type = T; }; argument
/llvm-project/libcxx/test/libcxx/depr/depr.function.objects/
H A Ddepr.adaptors.cxx1z.pass.cpp24 int identity(int v) { return v; } identity() function
31 int identity(int v) const { return v; } identity() function
H A Dadaptors.depr_in_cxx11.verify.cpp18 int identity(int v) { return v; } in identity() function
25 int identity(int v) { return v; } in identity() function
/llvm-project/clang/test/CodeGenCXX/
H A Dmangle-variadic-templates.cpp6 template<typename T> struct identity { using type = T; }; argument
/llvm-project/libcxx/test/std/numerics/numeric.ops/transform.reduce/
H A Dtransform_reduce_iter_iter_init_bop_uop.pass.cpp29 struct identity struct
32 constexpr decltype(auto) operator()(T&& x) const { in operator ()()
/llvm-project/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/
H A Dp4.cpp5 template<class T> struct identity { typedef T type; }; argument
/llvm-project/libcxx/test/std/concepts/concepts.lang/concept.same/
H A Dsame_as.pass.cpp66 struct identity { struct
70 template <template <typename> class Modifier = identity> argument
/llvm-project/flang/lib/Evaluate/
H A Dfold-reduction.h184 DoReduction(const Constant<ARRAY> & array,const Constant<LogicalResult> & mask,std::optional<int> & dim,const Scalar<T> & identity,ACCUMULATOR & accumulator) DoReduction() argument
274 FoldMaxvalMinval(FoldingContext & context,FunctionRef<T> && ref,RelationalOperator opr,const Scalar<T> & identity) FoldMaxvalMinval() argument
315 FoldProduct(FoldingContext & context,FunctionRef<T> && ref,Scalar<T> identity) FoldProduct() argument
[all...]
H A Dfold-character.cpp81 if (auto identity{Identity<T>( in FoldIntrinsicFunction() local
91 if (auto identity{Identity<T>( in FoldIntrinsicFunction() local
/llvm-project/libcxx/test/std/utilities/variant/variant.get/
H A Dget_type.pass.cpp109 template <class Tp> struct identity { using type = Tp; }; struct
/llvm-project/clang/test/CodeGen/WebAssembly/
H A Dwasm-funcref.c37 funcref_t identity(funcref_t fn) { in identity() function
/llvm-project/llvm/test/tools/llvm-ml/
H A Dmacro_function.asm5 identity MACRO arg macro
/llvm-project/clang/test/SemaTemplate/
H A Dinstantiate-requires-expr.cpp55 struct identity { using type = T; }; argument
[all...]
H A Daddress-spaces.cpp63 template<typename T> struct identity {}; struct
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges.remove.pass.cpp166 constexpr S& identity() { return *this; } in test() function
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges.replace.pass.cpp129 constexpr const S& identity() const { return *this; } in test() function
/llvm-project/llvm/unittests/Support/
H A DParallelTest.cpp55 auto identity = [](uint32_t v) { return v; }; TEST() local

123