Home
last modified time | relevance | path

Searched refs:LHS (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/external/llvm/include/llvm/Support/
DNoFolder.h40 Instruction *CreateAdd(Constant *LHS, Constant *RHS,
42 BinaryOperator *BO = BinaryOperator::CreateAdd(LHS, RHS);
47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() argument
48 return BinaryOperator::CreateNSWAdd(LHS, RHS); in CreateNSWAdd()
50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() argument
51 return BinaryOperator::CreateNUWAdd(LHS, RHS); in CreateNUWAdd()
53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
54 return BinaryOperator::CreateFAdd(LHS, RHS); in CreateFAdd()
56 Instruction *CreateSub(Constant *LHS, Constant *RHS,
58 BinaryOperator *BO = BinaryOperator::CreateSub(LHS, RHS);
[all …]
DPatternMatch.h378 BinaryOp_match(const LHS_t &LHS, const RHS_t &RHS) : L(LHS), R(RHS) {} in BinaryOp_match()
393 template<typename LHS, typename RHS>
394 inline BinaryOp_match<LHS, RHS, Instruction::Add>
395 m_Add(const LHS &L, const RHS &R) { in m_Add()
396 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
399 template<typename LHS, typename RHS>
400 inline BinaryOp_match<LHS, RHS, Instruction::FAdd>
401 m_FAdd(const LHS &L, const RHS &R) { in m_FAdd()
402 return BinaryOp_match<LHS, RHS, Instruction::FAdd>(L, R); in m_FAdd()
405 template<typename LHS, typename RHS>
[all …]
DConstantFolder.h34 Constant *CreateAdd(Constant *LHS, Constant *RHS,
36 return ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW);
38 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
39 return ConstantExpr::getFAdd(LHS, RHS); in CreateFAdd()
41 Constant *CreateSub(Constant *LHS, Constant *RHS,
43 return ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW);
45 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
46 return ConstantExpr::getFSub(LHS, RHS); in CreateFSub()
48 Constant *CreateMul(Constant *LHS, Constant *RHS,
50 return ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW);
[all …]
DTargetFolder.h50 Constant *CreateAdd(Constant *LHS, Constant *RHS,
52 return Fold(ConstantExpr::getAdd(LHS, RHS, HasNUW, HasNSW));
54 Constant *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() argument
55 return Fold(ConstantExpr::getFAdd(LHS, RHS)); in CreateFAdd()
57 Constant *CreateSub(Constant *LHS, Constant *RHS,
59 return Fold(ConstantExpr::getSub(LHS, RHS, HasNUW, HasNSW));
61 Constant *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() argument
62 return Fold(ConstantExpr::getFSub(LHS, RHS)); in CreateFSub()
64 Constant *CreateMul(Constant *LHS, Constant *RHS,
66 return Fold(ConstantExpr::getMul(LHS, RHS, HasNUW, HasNSW));
[all …]
/external/clang/include/clang/Basic/
DABI.h51 friend bool operator==(const ReturnAdjustment &LHS,
53 return LHS.NonVirtual == RHS.NonVirtual &&
54 LHS.VBaseOffsetOffset == RHS.VBaseOffsetOffset;
57 friend bool operator<(const ReturnAdjustment &LHS,
59 if (LHS.NonVirtual < RHS.NonVirtual)
62 return LHS.NonVirtual == RHS.NonVirtual &&
63 LHS.VBaseOffsetOffset < RHS.VBaseOffsetOffset;
81 friend bool operator==(const ThisAdjustment &LHS,
83 return LHS.NonVirtual == RHS.NonVirtual &&
84 LHS.VCallOffsetOffset == RHS.VCallOffsetOffset;
[all …]
DSourceLocation.h179 inline bool operator==(const SourceLocation &LHS, const SourceLocation &RHS) {
180 return LHS.getRawEncoding() == RHS.getRawEncoding();
183 inline bool operator!=(const SourceLocation &LHS, const SourceLocation &RHS) {
184 return !(LHS == RHS);
187 inline bool operator<(const SourceLocation &LHS, const SourceLocation &RHS) {
188 return LHS.getRawEncoding() < RHS.getRawEncoding();
337 operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) {
338 return LHS.getRawEncoding() == RHS.getRawEncoding() &&
339 LHS.SrcMgr == RHS.SrcMgr;
343 operator!=(const FullSourceLoc &LHS, const FullSourceLoc &RHS) {
[all …]
/external/clang/include/clang/Edit/
DFileOffset.h37 friend bool operator==(FileOffset LHS, FileOffset RHS) {
38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs;
40 friend bool operator!=(FileOffset LHS, FileOffset RHS) {
41 return !(LHS == RHS);
43 friend bool operator<(FileOffset LHS, FileOffset RHS) {
44 if (LHS.FID != RHS.FID)
45 return LHS.FID < RHS.FID;
46 return LHS.Offs < RHS.Offs;
48 friend bool operator>(FileOffset LHS, FileOffset RHS) {
49 if (LHS.FID != RHS.FID)
[all …]
/external/llvm/include/llvm/ADT/
DTwine.h152 Child LHS;
173 LHS.twine = &_LHS; in Twine()
181 : LHS(_LHS), RHS(_RHS), LHSKind(_LHSKind), RHSKind(_RHSKind) { in Twine()
227 !LHS.twine->isBinary()) in isValid()
266 LHS.cString = Str; in Twine()
277 LHS.stdString = &Str; in Twine()
284 LHS.stringRef = &Str; in Twine()
291 LHS.character = Val; in Twine()
297 LHS.character = static_cast<char>(Val); in Twine()
303 LHS.character = static_cast<char>(Val); in Twine()
[all …]
DDenseMapInfo.h47 static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
55 static bool isEqual(const char &LHS, const char &RHS) {
56 return LHS == RHS;
65 static bool isEqual(const unsigned& LHS, const unsigned& RHS) {
66 return LHS == RHS;
77 static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
78 return LHS == RHS;
89 static bool isEqual(const unsigned long long& LHS,
91 return LHS == RHS;
100 static bool isEqual(const int& LHS, const int& RHS) {
[all …]
DTriple.h271 unsigned LHS[3]; variable
272 getOSVersion(LHS[0], LHS[1], LHS[2]);
274 if (LHS[0] != Major)
275 return LHS[0] < Major;
276 if (LHS[1] != Minor)
277 return LHS[1] < Minor;
278 if (LHS[2] != Micro)
279 return LHS[1] < Micro;
/external/llvm/include/llvm/MC/
DMCExpr.h385 const MCExpr *LHS, *RHS; variable
388 : MCExpr(MCExpr::Binary), Op(_Op), LHS(_LHS), RHS(_RHS) {} in MCBinaryExpr()
394 static const MCBinaryExpr *Create(Opcode Op, const MCExpr *LHS,
396 static const MCBinaryExpr *CreateAdd(const MCExpr *LHS, const MCExpr *RHS, in CreateAdd() argument
398 return Create(Add, LHS, RHS, Ctx); in CreateAdd()
400 static const MCBinaryExpr *CreateAnd(const MCExpr *LHS, const MCExpr *RHS, in CreateAnd() argument
402 return Create(And, LHS, RHS, Ctx); in CreateAnd()
404 static const MCBinaryExpr *CreateDiv(const MCExpr *LHS, const MCExpr *RHS, in CreateDiv() argument
406 return Create(Div, LHS, RHS, Ctx); in CreateDiv()
408 static const MCBinaryExpr *CreateEQ(const MCExpr *LHS, const MCExpr *RHS, in CreateEQ() argument
[all …]
/external/llvm/include/llvm/IR/
DIRBuilder.h553 Value *LHS, Value *RHS, in CreateInsertNUWNSWBinOp() argument
556 BinaryOperator *BO = Insert(BinaryOperator::Create(Opc, LHS, RHS), Name); in CreateInsertNUWNSWBinOp()
573 Value *CreateAdd(Value *LHS, Value *RHS, const Twine &Name = "",
575 if (Constant *LC = dyn_cast<Constant>(LHS))
578 return CreateInsertNUWNSWBinOp(Instruction::Add, LHS, RHS, Name,
581 Value *CreateNSWAdd(Value *LHS, Value *RHS, const Twine &Name = "") {
582 return CreateAdd(LHS, RHS, Name, false, true);
584 Value *CreateNUWAdd(Value *LHS, Value *RHS, const Twine &Name = "") {
585 return CreateAdd(LHS, RHS, Name, true, false);
587 Value *CreateFAdd(Value *LHS, Value *RHS, const Twine &Name = "",
[all …]
/external/clang/lib/Lex/
DPPExpressions.cpp57 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec,
457 static bool EvaluateDirectiveSubExpr(PPValue &LHS, unsigned MinPrec, in EvaluateDirectiveSubExpr() argument
464 << LHS.getRange(); in EvaluateDirectiveSubExpr()
482 if (Operator == tok::ampamp && LHS.Val == 0) in EvaluateDirectiveSubExpr()
484 else if (Operator == tok::pipepipe && LHS.Val != 0) in EvaluateDirectiveSubExpr()
486 else if (Operator == tok::question && LHS.Val == 0) in EvaluateDirectiveSubExpr()
495 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
538 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
548 Res.setIsUnsigned(LHS.isUnsigned()|RHS.isUnsigned()); in EvaluateDirectiveSubExpr()
552 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
[all …]
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc66 ValueHandle LHS, in HandleIntegerOverflow() argument
76 << Value(Data->Type, LHS) << Operator << RHS << Data->Type; in HandleIntegerOverflow()
80 ValueHandle LHS, ValueHandle RHS) { in __ubsan_handle_add_overflow() argument
81 HandleIntegerOverflow(Data, LHS, "+", Value(Data->Type, RHS)); in __ubsan_handle_add_overflow()
84 ValueHandle LHS, in __ubsan_handle_add_overflow_abort() argument
86 __ubsan_handle_add_overflow(Data, LHS, RHS); in __ubsan_handle_add_overflow_abort()
91 ValueHandle LHS, ValueHandle RHS) { in __ubsan_handle_sub_overflow() argument
92 HandleIntegerOverflow(Data, LHS, "-", Value(Data->Type, RHS)); in __ubsan_handle_sub_overflow()
95 ValueHandle LHS, in __ubsan_handle_sub_overflow_abort() argument
97 __ubsan_handle_sub_overflow(Data, LHS, RHS); in __ubsan_handle_sub_overflow_abort()
[all …]
/external/llvm/include/llvm/Analysis/
DInstructionSimplify.h50 Value *SimplifyAddInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
57 Value *SimplifySubInst(Value *LHS, Value *RHS, bool isNSW, bool isNUW,
64 Value *SimplifyFAddInst(Value *LHS, Value *RHS, FastMathFlags FMF,
71 Value *SimplifyFSubInst(Value *LHS, Value *RHS, FastMathFlags FMF,
78 Value *SimplifyFMulInst(Value *LHS, Value *RHS,
86 Value *SimplifyMulInst(Value *LHS, Value *RHS, const DataLayout *TD = 0,
92 Value *SimplifySDivInst(Value *LHS, Value *RHS, const DataLayout *TD = 0,
98 Value *SimplifyUDivInst(Value *LHS, Value *RHS, const DataLayout *TD = 0,
104 Value *SimplifyFDivInst(Value *LHS, Value *RHS, const DataLayout *TD = 0,
110 Value *SimplifySRemInst(Value *LHS, Value *RHS, const DataLayout *TD = 0,
[all …]
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp79 static bool isSameCompare(Value *V, CmpInst::Predicate Pred, Value *LHS, in isSameCompare() argument
86 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
89 CRHS == LHS; in isSameCompare()
128 static Value *ExpandBinOp(unsigned Opcode, Value *LHS, Value *RHS, in ExpandBinOp() argument
137 if (BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS)) in ExpandBinOp()
149 return LHS; in ExpandBinOp()
163 Value *A = LHS, *B = Op1->getOperand(0), *C = Op1->getOperand(1); in ExpandBinOp()
189 static Value *FactorizeBinOp(unsigned Opcode, Value *LHS, Value *RHS, in FactorizeBinOp() argument
197 BinaryOperator *Op0 = dyn_cast<BinaryOperator>(LHS); in FactorizeBinOp()
221 return V == B ? LHS : RHS; in FactorizeBinOp()
[all …]
/external/llvm/unittests/Support/
DIntegersSubsetTest.cpp185 const unsigned_ranges LHS, in TestDiff() argument
199 Ranges.push_back(Range(Int(LHS[i][0]), Int(LHS[i][1]))); in TestDiff()
254 unsigned_ranges LHS = { { 0, 4 }, { 7, 10 }, { 13, 17 } }; in TEST() local
259 TestDiff(LHS, 3, RHS, 1, ExcludeRes, 2, IntersectRes, 3); in TEST()
263 unsigned_ranges LHS = { { 0, 4 }, { 7, 10 }, { 13, 17 } }; in TEST() local
268 TestDiff(LHS, 3, RHS, 2, ExcludeRes, 1, IntersectRes, 2); in TEST()
272 unsigned_ranges LHS = { { 0, 17 } }; in TEST() local
278 TestDiff(LHS, 1, RHS, 3, ExcludeRes, 4, IntersectRes, 3); in TEST()
282 unsigned_ranges LHS = { { 2, 4 } }; in TEST() local
287 TestDiff(LHS, 1, RHS, 1, ExcludeRes, 0, IntersectRes, 1); in TEST()
[all …]
/external/clang/include/clang/Lex/
DPPConditionalDirectiveRecord.h46 bool operator()(const CondDirectiveLoc &LHS, in operator()
48 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS.getLoc()); in operator()
50 bool operator()(const CondDirectiveLoc &LHS, SourceLocation RHS) { in operator()
51 return SM.isBeforeInTranslationUnit(LHS.getLoc(), RHS); in operator()
53 bool operator()(SourceLocation LHS, const CondDirectiveLoc &RHS) { in operator()
54 return SM.isBeforeInTranslationUnit(LHS, RHS.getLoc()); in operator()
80 bool areInDifferentConditionalDirectiveRegion(SourceLocation LHS, in areInDifferentConditionalDirectiveRegion() argument
82 return findConditionalDirectiveRegionLoc(LHS) != in areInDifferentConditionalDirectiveRegion()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp97 static Value *getNewICmpValue(bool Sign, unsigned Code, Value *LHS, Value *RHS, in getNewICmpValue() argument
100 if (Value *NewConstant = getICmpValue(Sign, Code, LHS, RHS, NewPred)) in getNewICmpValue()
102 return Builder->CreateICmp(NewPred, LHS, RHS); in getNewICmpValue()
109 Value *LHS, Value *RHS, in getFCmpValue() argument
122 if (!isordered) return ConstantInt::getTrue(LHS->getContext()); in getFCmpValue()
125 return Builder->CreateFCmp(Pred, LHS, RHS); in getFCmpValue()
340 Value *InstCombiner::FoldLogicalPlusAnd(Value *LHS, Value *RHS, in FoldLogicalPlusAnd() argument
343 Instruction *LHSI = dyn_cast<Instruction>(LHS); in FoldLogicalPlusAnd()
530 ICmpInst *LHS, ICmpInst *RHS, in foldLogOpOfMaskedICmpsHelper() argument
533 if (LHS->getOperand(0)->getType() != RHS->getOperand(0)->getType()) return 0; in foldLogOpOfMaskedICmpsHelper()
[all …]
/external/llvm/test/CodeGen/AArch64/
Dcond-sel.ll20 ; CHECK: cmp [[LHS:x[0-9]+]], [[RHS:w[0-9]+]], sxtw
22 ; CHECK: csel {{x[0-9]+}}, [[LHS]], [[EXT_RHS]], le
63 ; CHECK: cmp [[LHS:w[0-9]+]], [[RHS:w[0-9]+]]
64 ; CHECK: csinc {{w[0-9]+}}, [[LHS]], [[RHS]], ls
71 ; CHECK: cmp [[LHS:w[0-9]+]], {{w[0-9]+}}
72 ; CHECK: csinc {{w[0-9]+}}, [[LHS]], {{w[0-9]+}}, le
80 ; CHECK: cmp [[LHS:x[0-9]+]], {{w[0-9]+}}
81 ; CHECK: csinc {{x[0-9]+}}, [[LHS]], {{x[0-9]+}}, ls
88 ; CHECK: cmp [[LHS:x[0-9]+]], {{w[0-9]+}}
89 ; CHECK: csinc {{x[0-9]+}}, [[LHS]], {{x[0-9]+}}, le
[all …]
/external/clang/lib/Parse/
DParseExpr.cpp120 ExprResult LHS(ParseAssignmentExpression(isTypeCast)); in ParseExpression() local
121 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpression()
131 ExprResult LHS(ParseObjCAtExpression(AtLoc)); in ParseExpressionWithLeadingAt() local
132 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpressionWithLeadingAt()
140 ExprResult LHS(true); in ParseExpressionWithLeadingExtension() local
145 LHS = ParseCastExpression(false); in ParseExpressionWithLeadingExtension()
148 if (!LHS.isInvalid()) in ParseExpressionWithLeadingExtension()
149 LHS = Actions.ActOnUnaryOp(getCurScope(), ExtLoc, tok::kw___extension__, in ParseExpressionWithLeadingExtension()
150 LHS.take()); in ParseExpressionWithLeadingExtension()
152 return ParseRHSOfBinaryExpression(LHS, prec::Comma); in ParseExpressionWithLeadingExtension()
[all …]
/external/llvm/lib/MC/
DMCExpr.cpp142 const MCBinaryExpr *MCBinaryExpr::Create(Opcode Opc, const MCExpr *LHS, in Create() argument
144 return new (Ctx) MCBinaryExpr(Opc, LHS, RHS); in Create()
548 const MCValue &LHS,const MCSymbolRefExpr *RHS_A, in EvaluateSymbolicAdd() argument
553 const MCSymbolRefExpr *LHS_A = LHS.getSymA(); in EvaluateSymbolicAdd()
554 const MCSymbolRefExpr *LHS_B = LHS.getSymB(); in EvaluateSymbolicAdd()
555 int64_t LHS_Cst = LHS.getConstant(); in EvaluateSymbolicAdd()
712 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in EvaluateAsRelocatableImpl() local
715 case MCBinaryExpr::Add: Result = LHS + RHS; break; in EvaluateAsRelocatableImpl()
716 case MCBinaryExpr::And: Result = LHS & RHS; break; in EvaluateAsRelocatableImpl()
717 case MCBinaryExpr::Div: Result = LHS / RHS; break; in EvaluateAsRelocatableImpl()
[all …]
/external/clang/lib/CodeGen/
DCGExprScalar.cpp44 Value *LHS; member
411 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
414 return Builder.CreateNSWMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
424 if (Ops.LHS->getType()->isFPOrFPVectorTy()) in EmitMul()
425 return Builder.CreateFMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
426 return Builder.CreateMul(Ops.LHS, Ops.RHS, "mul"); in EmitMul()
436 static Value *GetWidthMinusOneValue(Value* LHS,Value* RHS);
444 return Builder.CreateAnd(Ops.LHS, Ops.RHS, "and"); in EmitAnd()
447 return Builder.CreateXor(Ops.LHS, Ops.RHS, "xor"); in EmitXor()
450 return Builder.CreateOr(Ops.LHS, Ops.RHS, "or"); in EmitOr()
[all …]
DCGExprComplex.cpp213 ComplexPairTy LHS; member
524 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinAdd()
525 ResR = Builder.CreateFAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd()
526 ResI = Builder.CreateFAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd()
528 ResR = Builder.CreateAdd(Op.LHS.first, Op.RHS.first, "add.r"); in EmitBinAdd()
529 ResI = Builder.CreateAdd(Op.LHS.second, Op.RHS.second, "add.i"); in EmitBinAdd()
536 if (Op.LHS.first->getType()->isFloatingPointTy()) { in EmitBinSub()
537 ResR = Builder.CreateFSub(Op.LHS.first, Op.RHS.first, "sub.r"); in EmitBinSub()
538 ResI = Builder.CreateFSub(Op.LHS.second, Op.RHS.second, "sub.i"); in EmitBinSub()
540 ResR = Builder.CreateSub(Op.LHS.first, Op.RHS.first, "sub.r"); in EmitBinSub()
[all …]
/external/clang/include/clang/AST/
DDeclarationName.h285 friend bool operator==(DeclarationName LHS, DeclarationName RHS) {
286 return LHS.Ptr == RHS.Ptr;
290 friend bool operator!=(DeclarationName LHS, DeclarationName RHS) {
291 return LHS.Ptr != RHS.Ptr;
302 static int compare(DeclarationName LHS, DeclarationName RHS);
311 inline bool operator<(DeclarationName LHS, DeclarationName RHS) {
312 return DeclarationName::compare(LHS, RHS) < 0;
317 inline bool operator>(DeclarationName LHS, DeclarationName RHS) {
318 return DeclarationName::compare(LHS, RHS) > 0;
323 inline bool operator<=(DeclarationName LHS, DeclarationName RHS) {
[all …]

12345678910>>...13