Home
last modified time | relevance | path

Searched refs:UnaryOp (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/llvm-project/lldb/include/lldb/Symbol/
H A DPostfixExpression.h37 UnaryOp, enumerator
139 : Node(UnaryOp), m_op_type(op_type), m_operand(&operand) {} in UnaryOpNode()
146 static bool classof(const Node *node) { return node->GetKind() == UnaryOp; } in classof()
188 case Node::UnaryOp: in Dispatch()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def39 TIL_OPCODE_DEF(UnaryOp)
H A DThreadSafetyTIL.h1176 class UnaryOp : public SExpr {
1178 UnaryOp(TIL_UnaryOpcode Op, SExpr *E) : SExpr(COP_UnaryOp), Expr0(E) { in UnaryOp() function
1182 UnaryOp(const UnaryOp &U, SExpr *E) : SExpr(U), Expr0(E) { Flags = U.Flags; } in UnaryOp() function
1200 typename C::CType compare(const UnaryOp* E, C& Cmp) const { in compare()
H A DThreadSafetyTraverse.h238 R_SExpr reduceUnaryOp(UnaryOp &Orig, R_SExpr E0) { return E0; } in reduceUnaryOp()
770 void printUnaryOp(const UnaryOp *E, StreamType &SS) { in printUnaryOp()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtProfile.cpp1727 UnaryOperatorKind &UnaryOp, in DecodeOperatorCall() argument
1743 UnaryOp = UO_Plus; in DecodeOperatorCall()
1752 UnaryOp = UO_Minus; in DecodeOperatorCall()
1761 UnaryOp = UO_Deref; in DecodeOperatorCall()
1782 UnaryOp = UO_AddrOf; in DecodeOperatorCall()
1794 UnaryOp = UO_Not; in DecodeOperatorCall()
1798 UnaryOp = UO_LNot; in DecodeOperatorCall()
1890 UnaryOp = NumArgs == 1 ? UO_PreInc : UO_PostInc; in DecodeOperatorCall()
1895 UnaryOp = NumArgs == 1 ? UO_PreDec : UO_PostDec; in DecodeOperatorCall()
1914 UnaryOp = UO_Coawait; in DecodeOperatorCall()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/
H A DCIRCanonicalize.cpp143 if (isa<BrOp, BrCondOp, CastOp, ScopeOp, SwitchOp, SelectOp, UnaryOp, in runOnOperation()
H A DCIRSimplify.cpp153 rewriter.replaceOpWithNewOp<cir::UnaryOp>(op, cir::UnaryOpKind::Not, in matchAndRewrite()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp810 const auto *UnaryOp = dyn_cast_or_null<UnaryOperator>(S); in isInAddressOf() local
811 return UnaryOp && UnaryOp->getOpcode() == UO_AddrOf; in isInAddressOf()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.h298 : public mlir::OpConversionPattern<cir::UnaryOp> {
300 using mlir::OpConversionPattern<cir::UnaryOp>::OpConversionPattern;
303 matchAndRewrite(cir::UnaryOp op, OpAdaptor,
H A DLowerToLLVM.cpp787 auto unary = dyn_cast_if_present<cir::UnaryOp>( in matchAndRewrite()
1385 cir::UnaryOp op, OpAdaptor adaptor, in matchAndRewrite()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp523 til::UnaryOp(til::UOP_Minus, translate(UO->getSubExpr(), Ctx)); in translateUnaryOperator()
526 til::UnaryOp(til::UOP_BitNot, translate(UO->getSubExpr(), Ctx)); in translateUnaryOperator()
529 til::UnaryOp(til::UOP_LogicNot, translate(UO->getSubExpr(), Ctx)); in translateUnaryOperator()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h834 enum UnaryOp : uint8_t { enum
853 UnOpInit(UnaryOp opc, const Init *lhs, const RecTy *Type) in UnOpInit()
864 static const UnOpInit *get(UnaryOp opc, const Init *lhs, const RecTy *Type);
868 UnaryOp getOpcode() const { return (UnaryOp)Opc; } in getOpcode()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRDialect.cpp1658 LogicalResult cir::UnaryOp::verify() { in verify()
1672 static bool isBoolNot(cir::UnaryOp op) { in isBoolNot()
1686 OpFoldResult cir::UnaryOp::fold(FoldAdaptor adaptor) { in fold()
1688 if (auto previous = dyn_cast_or_null<UnaryOp>(getInput().getDefiningOp())) in fold()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DCompiler.cpp6431 auto UnaryOp = E->getOpcode(); in VisitVectorUnaryOperator() local
6432 if (UnaryOp == UO_Extension) in VisitVectorUnaryOperator()
6435 if (UnaryOp != UO_Plus && UnaryOp != UO_Minus && UnaryOp != UO_LNot && in VisitVectorUnaryOperator()
6436 UnaryOp != UO_Not && UnaryOp != UO_AddrOf) in VisitVectorUnaryOperator()
6440 if (UnaryOp == UO_Plus || UnaryOp == UO_AddrOf) in VisitVectorUnaryOperator()
6467 switch (UnaryOp) { in VisitVectorUnaryOperator()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenBuilder.h267 return create<cir::UnaryOp>(value.getLoc(), value.getType(), in createNeg()
H A DCIRGenExprScalar.cpp602 return builder.create<cir::UnaryOp>( in emitUnaryOp()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DNumericalStabilitySanitizer.cpp1702 if (auto *UnaryOp = dyn_cast<UnaryOperator>(&Inst)) in createShadowValueWithOperandsAvailable() local
1703 return Builder.CreateUnOp(UnaryOp->getOpcode(), in createShadowValueWithOperandsAvailable()
1704 Map.getShadow(UnaryOp->getOperand(0))); in createShadowValueWithOperandsAvailable()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h133 return create<cir::UnaryOp>(value.getLoc(), value.getType(), in createNot()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIROps.td1045 // UnaryOp
1056 def UnaryOp : CIR_Op<"unary", [Pure, SameOperandsAndResultType]> {
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DRecord.cpp820 const UnOpInit *UnOpInit::get(UnaryOp Opc, const Init *LHS, const RecTy *Type) { in get()
H A DTGParser.cpp1203 UnOpInit::UnaryOp Code; in ParseOperation()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp9845 if (const UnaryOperator *UnaryOp = dyn_cast<UnaryOperator>(Dest)) in CheckMemaccessArguments() local
9846 if (UnaryOp->getOpcode() == UO_AddrOf) in CheckMemaccessArguments()
H A DSemaDeclCXX.cpp17587 if (const auto *UnaryOp = dyn_cast<UnaryOperator>(E)) in UsefulToPrintExpr() local
17588 return UsefulToPrintExpr(UnaryOp->getSubExpr()); in UsefulToPrintExpr()