Home
last modified time | relevance | path

Searched refs:UnOp (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td347 def OpImage: UnOp<"OpImage", 100>;
427 def OpBitcast : UnOp<"OpBitcast", 124>;
450 def OpSNegate: UnOp<"OpSNegate", 126>;
497 def OpNot: UnOp<"OpNot", 200>;
518 def OpIsNan: UnOp<"OpIsNan", 156>;
519 def OpIsInf: UnOp<"OpIsInf", 157>;
520 def OpIsFinite: UnOp<"OpIsFinite", 158>;
521 def OpIsNormal: UnOp<"OpIsNormal", 159>;
565 def OpDPdx: UnOp<"OpDPdx", 207>;
566 def OpDPdy: UnOp<"OpDPdy", 208>;
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DAliasing.cpp47 } else if (const auto *UnOp = dyn_cast<UnaryOperator>(S)) { in isPtrOrReferenceForVar() local
48 if (UnOp->getOpcode() == UO_AddrOf) in isPtrOrReferenceForVar()
49 return isAccessForVar(UnOp->getSubExpr(), Var); in isPtrOrReferenceForVar()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp170 if (const auto *UnOp = dyn_cast<UnaryOperator>(E)) { in replacementExpression() local
171 if (UnOp->getOpcode() == UO_LNot) { in replacementExpression()
172 if (needsNullPtrComparison(UnOp->getSubExpr())) in replacementExpression()
175 if (needsZeroComparison(UnOp->getSubExpr())) in replacementExpression()
176 return compareExpressionToZero(Context, UnOp->getSubExpr(), true); in replacementExpression()
178 return replacementExpression(Context, false, UnOp->getSubExpr()); in replacementExpression()
221 if (const auto *UnOp = dyn_cast<UnaryOperator>(E)) { in replacementExpression() local
222 if (UnOp->getOpcode() == UO_LNot) { in replacementExpression()
223 if (needsNullPtrComparison(UnOp->getSubExpr())) in replacementExpression()
226 if (needsZeroComparison(UnOp->getSubExpr())) in replacementExpression()
[all …]
H A DMakeMemberFunctionConstCheck.cpp180 if (const auto *UnOp = dyn_cast_or_null<UnaryOperator>(Parent)) { in VisitCXXThisExpr() local
181 if (UnOp->getOpcode() == UO_Deref) { in VisitCXXThisExpr()
182 Parent = getParentExprIgnoreParens(UnOp); in VisitCXXThisExpr()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DInfiniteLoopCheck.cpp134 } else if (const auto *UnOp = dyn_cast<UnaryOperator>(&Cond)) { in isKnownToHaveValue() local
135 if (UnOp->getOpcode() == UO_LNot) in isKnownToHaveValue()
136 return isKnownToHaveValue(*UnOp->getSubExpr(), Ctx, !ExpectedValue); in isKnownToHaveValue()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyWasmObjectWriter.cpp60 if (auto UnOp = dyn_cast<MCUnaryExpr>(Expr)) in getTargetSection() local
61 return getTargetSection(UnOp->getSubExpr()); in getTargetSection()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtVisitor.h85 } else if (PTR(UnaryOperator) UnOp = dyn_cast<UnaryOperator>(S)) { in Visit()
86 switch (UnOp->getOpcode()) { in Visit()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DPreferMemberInitializerCheck.cpp43 if (const auto *UnOp = dyn_cast<UnaryOperator>(E)) in isUnaryExprOfLiteral() local
44 return isLiteral(UnOp->getSubExpr()); in isUnaryExprOfLiteral()
/llvm-project-15.0.7/clang/lib/AST/
H A DExpr.cpp3149 if (const UnaryOperator* UnOp = dyn_cast<UnaryOperator>(E)) { in isImplicitCXXThis() local
3150 if (UnOp->getOpcode() == UO_Extension) { in isImplicitCXXThis()
3151 E = UnOp->getSubExpr(); in isImplicitCXXThis()
3980 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(E)) in getSourceBitField() local
3981 if (UnOp->isPrefix() && UnOp->isIncrementDecrementOp()) in getSourceBitField()
3982 return UnOp->getSubExpr()->getSourceBitField(); in getSourceBitField()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplate.cpp6480 while (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentAddressOfObjectOrFunction() local
6481 UnaryOperatorKind UnOpKind = UnOp->getOpcode(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6485 Arg = UnOp->getSubExpr()->IgnoreParenCasts(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6488 FirstOpLoc = UnOp->getOperatorLoc(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6544 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentAddressOfObjectOrFunction() local
6545 if (UnOp->getOpcode() == UO_AddrOf) { in CheckTemplateArgumentAddressOfObjectOrFunction()
6546 Arg = UnOp->getSubExpr(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6548 AddrOpLoc = UnOp->getOperatorLoc(); in CheckTemplateArgumentAddressOfObjectOrFunction()
6761 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(Arg)) { in CheckTemplateArgumentPointerToMember() local
6762 if (UnOp->getOpcode() == UO_AddrOf) { in CheckTemplateArgumentPointerToMember()
[all …]
H A DSemaOverload.cpp15244 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(E)) { in FixOverloadedFunctionReference() local
15245 assert(UnOp->getOpcode() == UO_AddrOf && in FixOverloadedFunctionReference()
15255 Expr *SubExpr = FixOverloadedFunctionReference(UnOp->getSubExpr(), in FixOverloadedFunctionReference()
15257 if (SubExpr == UnOp->getSubExpr()) in FixOverloadedFunctionReference()
15258 return UnOp; in FixOverloadedFunctionReference()
15274 (void)isCompleteType(UnOp->getOperatorLoc(), MemPtrType); in FixOverloadedFunctionReference()
15278 UnOp->getOperatorLoc(), false, CurFPFeatureOverrides()); in FixOverloadedFunctionReference()
15281 Expr *SubExpr = FixOverloadedFunctionReference(UnOp->getSubExpr(), in FixOverloadedFunctionReference()
15283 if (SubExpr == UnOp->getSubExpr()) in FixOverloadedFunctionReference()
15284 return UnOp; in FixOverloadedFunctionReference()
[all …]
H A DSemaExpr.cpp6741 if (UnaryOperator *UnOp = dyn_cast<UnaryOperator>(NakedFn)) { in BuildCallExpr() local
6742 if (UnOp->getOpcode() == UO_AddrOf) { in BuildCallExpr()
6744 NakedFn = UnOp->getSubExpr()->IgnoreParens(); in BuildCallExpr()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DIRBuilder.h1617 Instruction *UnOp = UnaryOperator::Create(Opc, V);
1618 if (isa<FPMathOperator>(UnOp))
1619 setFPAttrs(UnOp, FPMathTag, FMF);
1620 return Insert(UnOp, Name);
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1591 if (const UnaryOperator *UnOp = dyn_cast<UnaryOperator>(C->IgnoreParens())) in isInstrumentedCondition() local
1592 if (UnOp->getOpcode() == UO_LNot) in isInstrumentedCondition()
1593 C = UnOp->getSubExpr(); in isInstrumentedCondition()
H A DCGExprScalar.cpp141 if (const auto *UnOp = dyn_cast<UnaryOperator>(E)) in isFixedPointOp() local
142 return UnOp->getSubExpr()->getType()->isFixedPointType(); in isFixedPointOp()
3711 } else if (const auto *UnOp = dyn_cast<UnaryOperator>(op.E)) { in EmitFixedPointBinOp() local
3712 LHSTy = UnOp->getSubExpr()->getType(); in EmitFixedPointBinOp()
3713 RHSTy = UnOp->getSubExpr()->getType(); in EmitFixedPointBinOp()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerMatrixIntrinsics.cpp877 if (auto *UnOp = dyn_cast<UnaryOperator>(Inst)) in Visit() local
878 Changed |= VisitUnaryOperator(UnOp); in Visit()