Home
last modified time | relevance | path

Searched full:unary (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/llvm-project/lldb/test/Shell/SymbolFile/NativePDB/
H A Dfunction-types-builtins.cpp46 void unary(Arg) { } in unary() function
63 auto aa = &unary<bool>;
65 auto ab = &unary<char>;
67 auto ac = &unary<signed char>;
69 auto ad = &unary<unsigned char>;
71 auto ae = &unary<char16_t>;
73 auto af = &unary<char32_t>;
75 auto ag = &unary<wchar_t>;
77 auto ah = &unary<short>;
79 auto ai = &unary<unsigne
[all...]
/llvm-project/clang/test/CXX/expr/expr.unary/expr.unary.general/
H A Dp1.cpp29 -pt; // expected-error {{invalid argument type 'T *' to unary expression}} in dependent()
31 ~pt; // expected-error {{invalid argument type 'T *' to unary expression}} in dependent()
37 +mpt; // expected-error {{invalid argument type 'T U::*' to unary expression}} in dependent()
38 -mpt; // expected-error {{invalid argument type 'T U::*' to unary expression}} in dependent()
40 ~mpt; // expected-error {{invalid argument type 'T U::*' to unary expression}} in dependent()
47 -ft; // expected-error {{invalid argument type 'T (*)()' to unary expression}} in dependent()
49 ~ft; // expected-error {{invalid argument type 'T (*)()' to unary expression}} in dependent()
56 -at; // expected-error {{invalid argument type 'T *' to unary expression}} in dependent()
58 ~at; // expected-error {{invalid argument type 'T *' to unary expression}} in dependent()
/llvm-project/llvm/lib/Target/DirectX/
H A DDXIL.td202 def unary : DXILOpClass;
411 def Abs : DXILOp<6, unary> {
421 def Saturate : DXILOp<7, unary> {
442 def Cos : DXILOp<12, unary> {
452 def Sin : DXILOp<13, unary> {
462 def Tan : DXILOp<14, unary> {
472 def ACos : DXILOp<15, unary> {
482 def ASin : DXILOp<16, unary> {
492 def ATan : DXILOp<17, unary> {
502 def HCos : DXILOp<18, unary> {
[all...]
/llvm-project/llvm/docs/tutorial/MyFirstLanguageFrontend/
H A DLangImpl06.rst49 The two specific features we'll add are programmable unary operators
50 (right now, Kaleidoscope has no unary operators at all) as well as
55 # Logical unary not.
56 def unary!(v)
84 implementing support for user-defined binary operators and adding unary
91 our current framework. We'll first add support for the unary/binary
111 if (IdentifierStr == "unary")
115 This just adds lexer support for the unary and binary keywords, like we
163 operators (as you'll see below, it just doesn't apply for unary
175 unsigned Kind = 0; // 0 = identifier, 1 = unary, 2 = binary.
[all …]
/llvm-project/llvm/test/CodeGen/DirectX/
H A Dpow.ll8 ; DOPCHECK: call float @dx.op.unary.f32(i32 23, float %a)
11 ; DOPCHECK: call float @dx.op.unary.f32(i32 21, float %{{.*}})
19 ; DOPCHECK: call half @dx.op.unary.f16(i32 23, half %a)
22 ; DOPCHECK: call half @dx.op.unary.f16(i32 21, half %{{.*}})
H A Dreversebits.ll8 ; CHECK:call i16 @dx.op.unary.i16(i32 30, i16 %{{.*}}) #[[#ATTR:]]
16 ; CHECK:call i32 @dx.op.unary.i32(i32 30, i32 %{{.*}}) #[[#ATTR]]
24 ; CHECK:call i64 @dx.op.unary.i64(i32 30, i64 %{{.*}}) #[[#ATTR]]
32 ; CHECK: [[ie0:%.*]] = call i32 @dx.op.unary.i32(i32 30, i32 [[ee0]]) #[[#ATTR]]
34 ; CHECK: [[ie1:%.*]] = call i32 @dx.op.unary.i32(i32 30, i32 [[ee1]]) #[[#ATTR]]
36 ; CHECK: [[ie2:%.*]] = call i32 @dx.op.unary.i32(i32 30, i32 [[ee2]]) #[[#ATTR]]
38 ; CHECK: [[ie3:%.*]] = call i32 @dx.op.unary.i32(i32 30, i32 [[ee3]]) #[[#ATTR]]
H A Dfabs.ll9 ; CHECK: call half @dx.op.unary.f16(i32 6, half %{{.*}})
17 ; CHECK: call float @dx.op.unary.f32(i32 6, float %{{.*}})
25 ; CHECK: call double @dx.op.unary.f64(i32 6, double %{{.*}})
34 ; CHECK: [[ie0:%.*]] = call float @dx.op.unary.f32(i32 6, float [[ee0]])
36 ; CHECK: [[ie1:%.*]] = call float @dx.op.unary.f32(i32 6, float [[ee1]])
38 ; CHECK: [[ie2:%.*]] = call float @dx.op.unary.f32(i32 6, float [[ee2]])
40 ; CHECK: [[ie3:%.*]] = call float @dx.op.unary.f32(i32 6, float [[ee3]])
/llvm-project/libcxx/modules/std/
H A Dtype_traits.inc18 // [meta.unary.cat], primary type categories
34 // [meta.unary.comp], composite type categories
43 // [meta.unary.prop], type properties
112 // [meta.unary.prop.query], type property queries
211 // [meta.unary.cat], primary type categories
227 // [meta.unary.comp], composite type categories
236 // [meta.unary.prop], type properties
290 // [meta.unary.prop.query], type property queries
/llvm-project/clang-tools-extra/pseudo/lib/cxx/
H A Dcxx.bnf
/llvm-project/clang/include/clang/Basic/
H A DOperatorKinds.def34 /// Unary: True if the operator can be declared as a unary operator.
38 /// "operator*") can be both unary and binary.
50 # define OVERLOADED_OPERATOR(Name,Spelling,Token,Unary,Binary,MemberOnly)
54 # define OVERLOADED_OPERATOR_MULTI(Name,Spelling,Unary,Binary,MemberOnly) \
55 OVERLOADED_OPERATOR(Name,Spelling,unknown,Unary,Binary,MemberOnly)
/llvm-project/lldb/source/Symbol/
H A DPostfixExpression.cpp64 // token is unary operator in ParseOneExpression()
136 bool Visit(UnaryOpNode &unary, Node *&) override { in Visit() argument
137 return Dispatch(unary.Operand()); in Visit()
166 void Visit(UnaryOpNode &unary, Node *&) override;
231 void DWARFCodegen::Visit(UnaryOpNode &unary, Node *&) { in Visit() argument
232 Dispatch(unary.Operand()); in Visit()
234 switch (unary.GetOpType()) { in Visit()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/hicpp/
H A Dsigned-bitwise-standard-types.cpp116 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
118 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
135 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
137 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
155 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
157 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
175 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
177 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
195 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
197 …// CHECK-MESSAGES: [[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise o… in still_forbidden()
H A Dsigned-bitwise.cpp116 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise … in unary_bitwise()
118 …// CHECK-MESSAGES: :[[@LINE-1]]:13: warning: use of a signed integer operand with a unary bitwise … in unary_bitwise()
125 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use of a signed integer operand with a unary bitwise o… in unary_bitwise()
128 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use of a signed integer operand with a unary bitwise o… in unary_bitwise()
131 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use of a signed integer operand with a unary bitwise o… in unary_bitwise()
134 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use of a signed integer operand with a unary bitwise o… in unary_bitwise()
137 …// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: use of a signed integer operand with a unary bitwise o… in unary_bitwise()
161 …// CHECK-MESSAGES: :[[@LINE-1]]:8: warning: use of a signed integer operand with a unary bitwise o… in standard_examples()
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/google/
H A Doverloaded-unary-and.cpp5 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not overload unary operator&, it is dangerous. [goog…
11 // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: do not overload unary operator&
18 // CHECK-MESSAGES: :[[@LINE-1]]:1: warning: do not overload unary operator&
/llvm-project/clang-tools-extra/test/clang-tidy/checkers/modernize/
H A Dunary-static-assert.cpp1 // RUN: %check_clang_tidy -std=c++17-or-later %s modernize-unary-static-assert %t
8 …SAGES: :[[@LINE-1]]:3: warning: use unary 'static_assert' when the string literal is an empty stri… in f_textless()
/llvm-project/lldb/test/API/lang/cpp/function_refs/
H A Dmain.cpp5 void unary(Arg) { } in unary() function
12 auto &ref = unary<bool>;
13 auto &ref2 = unary<volatile int*>;
/llvm-project/clang/lib/Parse/
H A DParseExpr.cpp13 /// unary operators and other random stuff at the leaves.
15 /// In the C99 grammar, these unary operators bind tightest and are represented
17 /// operator (e.g. '/') or a ternary operator ("?:"). The unary leaves are
50 /// parsed as a unary-expression, but consistency dictates that it be a
53 /// unary-expression and conditional-expression don't produce. Because we want
124 /// unary-expression assignment-operator assignment-expression
717 /// Parse a cast-expression, unary-expression or primary-expression, based in ParseCastExpression()
883 /// a unary-expression.
892 /// unary-expression
895 /// unary
[all...]
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DOverloadedUnaryAndCheck.cpp20 // Match unary methods that overload operator&. in registerMatchers()
25 // Also match freestanding unary operator& overloads. Be careful not to match in registerMatchers()
36 "do not overload unary operator&, it is dangerous."); in check()
/llvm-project/clang-tools-extra/clang-tidy/hicpp/
H A DSignedBitwiseCheck.cpp68 // Match unary operations on signed integer types. in registerMatchers()
71 .bind("unary-signed"), in registerMatchers()
84 if (const auto *UnaryOp = N.getNodeAs<UnaryOperator>("unary-signed")) { in check()
98 "%select{binary|unary}0 bitwise operator") in check()
/llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/
H A Dsparse_reduce_custom_sum.mlir39 doc = "x += SUM_CUSTOM_i UNARY a(i)"
42 // Test of unary op feeding into custom sum reduction.
54 %u = sparse_tensor.unary %a : i32 to i32
76 %u = sparse_tensor.unary %a : i32 to i32
101 %u = sparse_tensor.unary %a : i32 to i32
126 %u = sparse_tensor.unary %a : i32 to i32
/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h40 Unary, ///< Unary expressions. enumerator
436 /// Unary assembler expressions.
441 Minus, ///< Unary minus.
443 Plus ///< Unary plus.
450 : MCExpr(MCExpr::Unary, Loc, Op), Expr(Expr) {}
479 /// Get the kind of this unary expression.
482 /// Get the child of this unary expression. in classof()
488 return E->getKind() == MCExpr::Unary;
/llvm-project/llvm/test/tools/llvm-rc/
H A Dparser-expr.test35 …preprocess /dry-run /V -- %p/Inputs/parser-expr-bad-unary.rc 2>&1 | FileCheck %s --check-prefix UN…
37 ; UNARY: llvm-rc: Error parsing file: expected ',', got ~
/llvm-project/llvm/test/Examples/Kaleidoscope/
H A DChapter6.test4 # Test unary operator definition.
5 def unary-(x) 0 - x;
/llvm-project/mlir/test/Target/Cpp/
H A Dunary_operators.mlir3 func.func @unary(%arg0: i32) -> () {
10 // CHECK-LABEL: void unary
/llvm-project/llvm/examples/Kaleidoscope/MCJIT/lazy/
H A Dtoy-jit.cpp72 if (IdentifierStr == "unary") return tok_unary; in gettok()
135 /// UnaryExprAST - Expression class for a unary operator.
454 /// unary
456 /// ::= '!' unary
462 // If this is a unary operator, read it. in ParseUnary()
471 /// ::= ('+' unary)*
486 // Parse the unary expression after the binary operator. in ParseBinOpRHS()
504 /// ::= unary binoprhs
516 /// ::= unary LETTER (id)
520 unsigned Kind = 0; // 0 = identifier, 1 = unary, 2 = binary. in ParsePrototype()
[all …]

12345678910>>...23