/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/ |
D | CallbacksUnaryOperator.cpp | 17 bool TraverseUnaryOperator(UnaryOperator *UO) { in TEST() argument 18 recordCallback(__func__, UO, [&]() { in TEST() 19 RecordingVisitorBase::TraverseUnaryOperator(UO); in TEST() 69 bool TraverseUnaryOperator(UnaryOperator *UO) { in TEST() argument 70 recordCallback(__func__, UO, [&]() { in TEST() 71 RecordingVisitorBase::TraverseUnaryOperator(UO); in TEST() 88 bool WalkUpFromUnaryOperator(UnaryOperator *UO) { in TEST() argument 89 recordCallback(__func__, UO, [&]() { in TEST() 90 RecordingVisitorBase::WalkUpFromUnaryOperator(UO); in TEST() 155 bool WalkUpFromUnaryOperator(UnaryOperator *UO) { in TEST() argument [all …]
|
D | CallbacksCommon.h | 44 if (UnaryOperator *UO = dyn_cast<UnaryOperator>(S)) { in stmtToString() local 45 return (ClassName + "(" + UnaryOperator::getOpcodeStr(UO->getOpcode()) + in stmtToString()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | InvalidatedIteratorChecker.cpp | 43 void checkPreStmt(const UnaryOperator *UO, CheckerContext &C) const; 75 void InvalidatedIteratorChecker::checkPreStmt(const UnaryOperator *UO, in checkPreStmt() argument 77 if (isa<CXXThisExpr>(UO->getSubExpr())) in checkPreStmt() 81 UnaryOperatorKind OK = UO->getOpcode(); in checkPreStmt() 82 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt()
|
D | IteratorRangeChecker.cpp | 52 void checkPreStmt(const UnaryOperator *UO, CheckerContext &C) const; 144 void IteratorRangeChecker::checkPreStmt(const UnaryOperator *UO, in checkPreStmt() argument 146 if (isa<CXXThisExpr>(UO->getSubExpr())) in checkPreStmt() 150 UnaryOperatorKind OK = UO->getOpcode(); in checkPreStmt() 151 SVal SubVal = State->getSVal(UO->getSubExpr(), C.getLocationContext()); in checkPreStmt()
|
/external/llvm-project/llvm/tools/llvm-lipo/ |
D | llvm-lipo.cpp | 363 if (auto UO = in verifyArch() local 367 UO->getObjectForArch(Arch); in verifyArch() 385 if (auto UO = dyn_cast<MachOUniversalBinary>(Binary)) { in printBinaryArchs() local 386 for (const auto &O : UO->objects()) { in printBinaryArchs() 480 auto *UO = cast<MachOUniversalBinary>(InputBinaries.front().getBinary()); in thinSlice() local 482 UO->getMachOObjectForArch(ArchType); in thinSlice() 484 UO->getIRObjectForArch(ArchType, LLVMCtx); in thinSlice() 485 Expected<std::unique_ptr<Archive>> Ar = UO->getArchiveForArch(ArchType); in thinSlice() 487 reportError("fat input file " + UO->getFileName() + in thinSlice() 503 sys::fs::can_execute(UO->getFileName()) in thinSlice() [all …]
|
/external/clang/lib/Analysis/ |
D | PseudoConstantAnalysis.cpp | 137 const UnaryOperator *UO = cast<UnaryOperator>(Head); in RunAnalysis() local 140 const Decl *D = getDecl(UO->getSubExpr()->IgnoreParenCasts()); in RunAnalysis() 147 switch (UO->getOpcode()) { in RunAnalysis()
|
D | ThreadSafetyCommon.cpp | 173 else if (auto *UO = dyn_cast<UnaryOperator>(AttrExp)) { in translateAttrExpr() local 174 if (UO->getOpcode() == UO_LNot) { in translateAttrExpr() 176 AttrExp = UO->getSubExpr(); in translateAttrExpr() 404 til::SExpr *SExprBuilder::translateUnaryOperator(const UnaryOperator *UO, in translateUnaryOperator() argument 406 switch (UO->getOpcode()) { in translateUnaryOperator() 411 return new (Arena) til::Undefined(UO); in translateUnaryOperator() 416 if (DeclRefExpr* DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) { in translateUnaryOperator() 426 return translate(UO->getSubExpr(), Ctx); in translateUnaryOperator() 432 return translate(UO->getSubExpr(), Ctx); in translateUnaryOperator() 436 til::UnaryOp(til::UOP_Minus, translate(UO->getSubExpr(), Ctx)); in translateUnaryOperator() [all …]
|
D | ReachableCode.cpp | 218 const UnaryOperator *UO = cast<UnaryOperator>(S); in isConfigurationValue() local 220 *SilenceableCondVal = UO->getSourceRange(); in isConfigurationValue() 221 return UO->getOpcode() == UO_LNot && in isConfigurationValue() 222 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue() 518 const UnaryOperator *UO = cast<UnaryOperator>(S); in GetUnreachableLoc() local 519 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 520 return UO->getOperatorLoc(); in GetUnreachableLoc()
|
D | UninitializedValues.cpp | 328 void VisitUnaryOperator(UnaryOperator *UO); 429 void ClassifyRefs::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator() argument 432 if (UO->isIncrementDecrementOp()) in VisitUnaryOperator() 433 classify(UO->getSubExpr(), Use); in VisitUnaryOperator() 464 const UnaryOperator *UO = dyn_cast<UnaryOperator>(Ex); in VisitCallExpr() local 465 if (UO && UO->getOpcode() == UO_AddrOf) in VisitCallExpr() 466 Ex = UO->getSubExpr(); in VisitCallExpr()
|
/external/llvm-project/clang/lib/Analysis/ |
D | ReachableCode.cpp | 250 const UnaryOperator *UO = cast<UnaryOperator>(S); in isConfigurationValue() local 251 if (UO->getOpcode() != UO_LNot && UO->getOpcode() != UO_Minus) in isConfigurationValue() 256 isConfigurationValue(UO->getSubExpr(), PP, SilenceableCondVal, in isConfigurationValue() 263 UO->getSubExpr()->IgnoreCasts()->getSourceRange()) in isConfigurationValue() 264 *SilenceableCondVal = UO->getSourceRange(); in isConfigurationValue() 560 const UnaryOperator *UO = cast<UnaryOperator>(S); in GetUnreachableLoc() local 561 R1 = UO->getSubExpr()->getSourceRange(); in GetUnreachableLoc() 562 return UO->getOperatorLoc(); in GetUnreachableLoc()
|
D | ThreadSafetyCommon.cpp | 173 else if (const auto *UO = dyn_cast<UnaryOperator>(AttrExp)) { in translateAttrExpr() local 174 if (UO->getOpcode() == UO_LNot) { in translateAttrExpr() 176 AttrExp = UO->getSubExpr(); in translateAttrExpr() 429 til::SExpr *SExprBuilder::translateUnaryOperator(const UnaryOperator *UO, in translateUnaryOperator() argument 431 switch (UO->getOpcode()) { in translateUnaryOperator() 436 return new (Arena) til::Undefined(UO); in translateUnaryOperator() 441 if (const auto *DRE = dyn_cast<DeclRefExpr>(UO->getSubExpr())) { in translateUnaryOperator() 451 return translate(UO->getSubExpr(), Ctx); in translateUnaryOperator() 456 return translate(UO->getSubExpr(), Ctx); in translateUnaryOperator() 460 til::UnaryOp(til::UOP_Minus, translate(UO->getSubExpr(), Ctx)); in translateUnaryOperator() [all …]
|
D | UninitializedValues.cpp | 289 void VisitUnaryOperator(UnaryOperator *UO); 392 void ClassifyRefs::VisitUnaryOperator(UnaryOperator *UO) { in VisitUnaryOperator() argument 395 if (UO->isIncrementDecrementOp()) in VisitUnaryOperator() 396 classify(UO->getSubExpr(), Use); in VisitUnaryOperator() 438 const auto *UO = dyn_cast<UnaryOperator>(Ex); in VisitCallExpr() local 439 if (UO && UO->getOpcode() == UO_AddrOf) in VisitCallExpr() 440 Ex = UO->getSubExpr(); in VisitCallExpr()
|
/external/llvm-project/clang/include/clang/AST/ |
D | IgnoreExpr.h | 141 if (auto *UO = dyn_cast<UnaryOperator>(E)) { in IgnoreParensSingleStep() local 142 if (UO->getOpcode() == UO_Extension) in IgnoreParensSingleStep() 143 return UO->getSubExpr(); in IgnoreParensSingleStep()
|
/external/clang/lib/Sema/ |
D | SemaFixItUtils.cpp | 106 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion() local 107 if (UO->getOpcode() == UO_AddrOf) { in tryToFixConversion() 140 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion() local 141 if (UO->getOpcode() == UO_Deref) { in tryToFixConversion()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaFixItUtils.cpp | 105 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion() local 106 if (UO->getOpcode() == UO_AddrOf) { in tryToFixConversion() 139 if (const UnaryOperator *UO = dyn_cast<UnaryOperator>(Expr)) { in tryToFixConversion() local 140 if (UO->getOpcode() == UO_Deref) { in tryToFixConversion()
|
/external/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 570 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 571 if (UO) { in printFileSectionSizes() 572 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes() 590 UO.takeError())) { in printFileSectionSizes() 661 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 662 if (UO) { in printFileSectionSizes() 663 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes() 680 } else if (auto E = isNotObjectErrorInvalidFileType(UO.takeError())) { in printFileSectionSizes() 735 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 736 if (UO) { in printFileSectionSizes() [all …]
|
/external/llvm-project/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 608 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 609 if (UO) { in printFileSectionSizes() 610 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes() 628 UO.takeError())) { in printFileSectionSizes() 699 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 700 if (UO) { in printFileSectionSizes() 701 if (ObjectFile *o = dyn_cast<ObjectFile>(&*UO.get())) { in printFileSectionSizes() 718 } else if (auto E = isNotObjectErrorInvalidFileType(UO.takeError())) { in printFileSectionSizes() 774 Expected<std::unique_ptr<ObjectFile>> UO = I->getAsObjectFile(); in printFileSectionSizes() local 775 if (UO) { in printFileSectionSizes() [all …]
|
/external/llvm-project/llvm/test/Demangle/ |
D | ms-templates-memptrs-2.test | 18 ?o@@3U?$J@UO@@$IA@A@@@A 21 ?o2@@3U?$K@UO@@$FA@?0@@A
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerKernelArgs.cpp | 206 Value *UO = GetUnderlyingObject(LI->getPointerOperand(), in runOnFunction() local 208 if (Argument *Arg = dyn_cast<Argument>(UO)) { in runOnFunction()
|
/external/llvm-project/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerArgs.cpp | 221 Value *UO = getUnderlyingObject(LI->getPointerOperand()); in runOnKernelFunction() local 222 if (Argument *Arg = dyn_cast<Argument>(UO)) { in runOnKernelFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXLowerArgs.cpp | 215 Value *UO = GetUnderlyingObject(LI->getPointerOperand(), in runOnKernelFunction() local 217 if (Argument *Arg = dyn_cast<Argument>(UO)) { in runOnKernelFunction()
|
/external/llvm/lib/Transforms/Utils/ |
D | MemorySSA.cpp | 854 MemoryAccess *UO = getDefiningAccess(); in print() local 857 if (UO && UO->getID()) in print() 858 OS << UO->getID(); in print() 893 MemoryAccess *UO = getDefiningAccess(); in print() local 895 if (UO && UO->getID()) in print() 896 OS << UO->getID(); in print()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 132 UnarySplitter(UnaryOperator &uo) : UO(uo) {} in UnarySplitter() 135 return Builder.CreateUnOp(UO.getOpcode(), Op, Name); in operator ()() 138 UnaryOperator &UO; member 190 bool visitUnaryOperator(UnaryOperator &UO); 610 bool ScalarizerVisitor::visitUnaryOperator(UnaryOperator &UO) { in visitUnaryOperator() argument 611 return splitUnary(UO, UnarySplitter(UO)); in visitUnaryOperator()
|
/external/clang/lib/Index/ |
D | IndexBody.cpp | 75 } else if (auto UO = dyn_cast<UnaryOperator>(Parent)) { in getRolesForRef() local 76 if (UO->isIncrementDecrementOp()) { in getRolesForRef() 79 } else if (UO->getOpcode() == UO_AddrOf) { in getRolesForRef()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | Scalarizer.cpp | 138 UnarySplitter(UnaryOperator &uo) : UO(uo) {} in UnarySplitter() 141 return Builder.CreateUnOp(UO.getOpcode(), Op, Name); in operator ()() 144 UnaryOperator &UO; member 196 bool visitUnaryOperator(UnaryOperator &UO); 622 bool ScalarizerVisitor::visitUnaryOperator(UnaryOperator &UO) { in visitUnaryOperator() argument 623 return splitUnary(UO, UnarySplitter(UO)); in visitUnaryOperator()
|