| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | robust_against_cpp20_hostile_iterators.compile.pass.cpp | 31 Sub& sub() { return static_cast<Sub&>(*this); } in sub() 41 Sub& operator++() { return static_cast<Sub&>(*this); } in operator ++() 42 Sub& operator--() { return static_cast<Sub&>(*this); } in operator --() 43 Sub operator++(int) { return static_cast<Sub&>(*this); } in operator ++() 53 friend Sub operator+(Sub, difference_type) { return Sub(); } in operator +() argument 54 friend Sub operator+(difference_type, Sub) { return Sub(); } in operator +() argument 55 friend Sub operator-(Sub, difference_type) { return Sub(); } in operator -() argument 58 friend bool operator<(Sub, Sub) { return false; } in operator <() argument 59 friend bool operator>(Sub, Sub) { return false; } in operator >() argument 60 friend bool operator<=(Sub, Sub) { return false; } in operator <=() argument [all …]
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | call-unavailable-init-in-self.m | 18 @interface Sub: NSObject interface 29 @implementation Sub implementation 31 + (Sub *)create { 35 + (Sub *)create2 { 39 + (Sub *)create3 { 40 return [Sub new]; 53 [[Sub alloc] declaredInSuper]; 55 [[Sub alloc] declaredInSuperCategory]; 60 @interface SubClassContext: Sub 67 (void)[Sub new]; // expected-error {{'new' is unavailable}} [all …]
|
| H A D | warn-superclass-method-mismatch.m | 7 @class Sub; 12 -(void) method2: (Sub*) x; // expected-note{{passing argument to parameter 'x' here}} argument 23 @interface Sub : Base interface 25 -(void) method1: (Sub*) x; // expected-warning {{method parameter type 'Sub *' does not match super… argument 27 + method3: (int)x1 : (Sub *)x2 : (float)x3; // expected-warning {{method parameter type 'Sub *' doe… 29 -(void) method_r: (char)ch : (float*)f1 : (Sub*) x; // expected-warning {{method parameter type 'Su… argument 34 void f(Base *base, Sub *sub) { 36 …[base method:&x]; // warn. if base is actually 'Sub' it will use -[Sub method] with wrong argumen… 39 [base method1:b]; // if base is actuall 'Sub' it will use [Sub method1] with wrong argument. 43 Sub *s; [all …]
|
| H A D | block-type-safety.m | 7 @interface Sub : Super @end interface 14 void f3(void(^f)(Sub *)) { 15 Sub *o; 23 void r1(Sub* (^f)(void)) { // expected-note{{passing argument to parameter 'f' here}} 24 Sub *o = f(); 35 f2(^(Sub *o) { }); // expected-error {{incompatible block pointer types passing}} 36 f3(^(Super *o) { }); // OK, block taking Super* may be called with a Sub* 39 r0(^Sub* (void) { return 0; }); // OK, variable of type Super* gets return value of type Sub* 43 r1(^Sub* (void) { return 0; }); // OK
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | CastExprTest.cpp | 35 auto Sub = Expr->getSubExprAsWritten(); in TEST() local 36 EXPECT_TRUE(isa<DeclRefExpr>(Sub)) in TEST() 37 << "Expected DeclRefExpr, but saw " << Sub->getStmtClassName(); in TEST() 55 auto *Sub = Expr->getSubExprAsWritten(); in TEST() local 56 EXPECT_TRUE(isa<IntegerLiteral>(Sub)) in TEST() 57 << "Expected IntegerLiteral, but saw " << Sub->getStmtClassName(); in TEST()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | pragma-pack.cpp | 11 struct Sub : public Base { struct 16 int check[sizeof(Sub) == 5 ? 1 : -1]; 28 struct Sub : virtual Base { struct 33 int check[sizeof(Sub) == 13 ? 1 : -1];
|
| /llvm-project-15.0.7/clang/test/Rewriter/ |
| H A D | objc-modern-class-init.mm | 10 @interface Sub : Super interface 13 @implementation Sub @end implementation 19 @interface Sub(Cat) @end interface in Cat 23 @implementation Sub(Cat) @end implementation in Cat
|
| H A D | objc-modern-class-init-hooks.mm | 10 @interface Sub : Super interface 13 @implementation Sub @end implementation 19 @interface Sub(Cat) @end interface in Cat 23 @implementation Sub(Cat) @end implementation in Cat
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonExpandCondsets.cpp | 184 return Reg == RR.Reg && Sub == RR.Sub; in operator ==() 188 return Reg < RR.Reg || (Reg == RR.Reg && Sub < RR.Sub); in operator <() 192 unsigned Sub; member 262 switch (Sub) { in INITIALIZE_PASS_DEPENDENCY() 291 return Sub != 0 ? TRI->getSubRegIndexLaneMask(Sub) in getLaneMask() 594 MCRegister PhysS = (RS.Sub == 0) ? PhysR : TRI->getSubReg(PhysR, RS.Sub); in getCondTfrOpcode() 779 if (RR.Sub == RD.Sub) in getReachingDefForPred() 781 if (RR.Sub == 0 || RD.Sub == 0) in getReachingDefForPred() 926 Op.setSubReg(RN.Sub); in renameInRange() 1013 RR.Sub = 0; in predicate() [all …]
|
| H A D | HexagonBitSimplify.cpp | 438 if (RR.Sub == 0) { in getSubregMask() 450 if (RR.Sub == Hexagon::isub_hi || RR.Sub == Hexagon::vsub_hi) in getSubregMask() 930 if (RR.Sub == 0) in getFinalVRegClass() 1596 Out.Sub = 0; in findMatch() 1745 Changed = HBS::replaceSubWithSub(RD.Reg, Sub, RS.Reg, RS.Sub, MRI); in propagateRegCopy() 1877 unsigned Sub = 0; in matchHalf() local 1900 RH.Sub = Sub; in matchHalf() 1904 RH.Sub = 0; in matchHalf() 1929 if (H1.Reg != L1.Reg || H1.Sub != L1.Sub || H1.Low || !L1.Low) in matchPackhl() 1931 if (H2.Reg != L2.Reg || H2.Sub != L2.Sub || H2.Low || !L2.Low) in matchPackhl() [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | pragma-pack.cpp | 9 struct Sub : virtual Base { struct 14 void f(Sub*) { } in f() argument 16 static int i[sizeof(Sub) == 13 ? 1 : -1];
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | CommandLine.cpp | 193 if (SC == Sub) in addLiteralOption() 249 if (SC == Sub) in addOption() 251 addOption(O, Sub); in addOption() 276 SubCommand &Sub = *SC; in removeOption() local 281 Sub.OptionsMap.erase(I); in removeOption() 293 for (auto *Opt = Sub.SinkOpts.begin(); Opt != Sub.SinkOpts.end(); ++Opt) { in removeOption() 295 Sub.SinkOpts.erase(Opt); in removeOption() 318 return (!Sub.OptionsMap.empty() || !Sub.PositionalOpts.empty() || in hasOptions() 333 SubCommand &Sub = *SC; in updateArgStr() local 540 if (I == Sub.OptionsMap.end()) in LookupOption() [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/MCDisassembler/ |
| H A D | MCExternalSymbolizer.cpp | 96 const MCExpr *Sub = nullptr; in tryAddingSymbolicOperand() local 101 Sub = MCSymbolRefExpr::create(Sym, Ctx); in tryAddingSymbolicOperand() 103 Sub = MCConstantExpr::create((int)SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand() 112 if (Sub) { in tryAddingSymbolicOperand() 115 LHS = MCBinaryExpr::createSub(Add, Sub, Ctx); in tryAddingSymbolicOperand() 117 LHS = MCUnaryExpr::createMinus(Sub, Ctx); in tryAddingSymbolicOperand()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | fmsubadd-combine.ll | 29 %Sub = fsub <2 x double> %AB, %C 31 %subadd = shufflevector <2 x double> %Add, <2 x double> %Sub, <2 x i32> <i32 0, i32 3> 55 %Sub = fsub <4 x float> %AB, %C 57 %subadd = shufflevector <4 x float> %Add, <4 x float> %Sub, <4 x i32> <i32 0, i32 5, i32 2, i32 7> 81 %Sub = fsub <4 x double> %AB, %C 83 …%subadd = shufflevector <4 x double> %Add, <4 x double> %Sub, <4 x i32> <i32 0, i32 5, i32 2, i32 … 107 %Sub = fsub <8 x float> %AB, %C 144 %Sub = fsub <8 x double> %AB, %C 181 %Sub = fsub <16 x float> %AB, %C 198 %Sub = fsub <2 x double> %C, %AB [all …]
|
| /llvm-project-15.0.7/clang/test/Index/Inputs/ |
| H A D | t2.m | 4 Sub *sub; 7 [Sub my_method:x]; 10 @implementation Sub implementation
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/Disassembler/ |
| H A D | AArch64ExternalSymbolizer.cpp | 184 const MCExpr *Sub = nullptr; in tryAddingSymbolicOperand() local 189 Sub = MCSymbolRefExpr::create(Sym, Ctx); in tryAddingSymbolicOperand() 191 Sub = MCConstantExpr::create(SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand() 200 if (Sub) { in tryAddingSymbolicOperand() 203 LHS = MCBinaryExpr::createSub(Add, Sub, Ctx); in tryAddingSymbolicOperand() 205 LHS = MCUnaryExpr::createMinus(Sub, Ctx); in tryAddingSymbolicOperand()
|
| /llvm-project-15.0.7/llvm/examples/Fibonacci/ |
| H A D | fibonacci.cpp | 83 Value *Sub = BinaryOperator::CreateSub(ArgX, One, "arg", RecurseBB); in CreateFibFunction() local 84 CallInst *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB); in CreateFibFunction() 88 Sub = BinaryOperator::CreateSub(ArgX, Two, "arg", RecurseBB); in CreateFibFunction() 89 CallInst *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB); in CreateFibFunction()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | complete-ivar-access.m | 31 @interface Sub : Super { interface 41 @implementation Sub implementation in Sub 42 - (void)method:(Sub *)sub with:(Other *)other { argument 47 void f(Sub *sub, Other *other) { category
|
| H A D | cursor-ref-names.cpp | 7 struct Sub: public Base<int> { struct 17 Sub inst; in main()
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/HasSubModules.framework/Headers/ |
| H A D | HasSubModules.h | 1 #import <Sub/Sub.h>
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | temporaries-callback-order.cpp | 6 struct Sub : Super { struct 12 Sub().m(); in testTemporaries() argument
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | CalcSpillWeights.cpp | 49 unsigned Sub, HSub; in copyHint() local 52 Sub = MI->getOperand(0).getSubReg(); in copyHint() 56 Sub = MI->getOperand(1).getSubReg(); in copyHint() 65 return Sub == HSub ? HReg : Register(); in copyHint() 73 if (Sub) in copyHint() 74 return TRI.getMatchingSuperReg(CopiedPReg, Sub, RC); in copyHint()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | DivRemPairs.cpp | 316 Instruction *Sub = BinaryOperator::CreateSub(X, Mul); in optimizeDivRem() local 351 Sub->insertAfter(Mul); in optimizeDivRem() 366 Sub->setOperand(0, FrX); in optimizeDivRem() 378 Sub->setName(RemInst->getName() + ".decomposed"); in optimizeDivRem() 381 RemInst = Sub; in optimizeDivRem() 383 OrigRemInst->replaceAllUsesWith(Sub); in optimizeDivRem()
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/Main.framework/Modules/ |
| H A D | module.modulemap | 7 framework module Sub { 8 umbrella header "Sub.h"
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/MainA.framework/Modules/ |
| H A D | module.modulemap | 7 framework module Sub { 8 umbrella header "Sub.h"
|