/external/llvm-project/clang/test/Sema/ |
D | conditional-expr.c | 53 enum Enum { EVal }; in foo() enumerator 54 test0 = test0 ? EVal : test0; in foo() 55 test1 = test0 ? EVal : (int) test0; in foo() 57 (unsigned) EVal in foo() 60 …test0 = test0 ? EVal : test1; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in foo() 61 …test0 = test0 ? test1 : EVal; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in foo()
|
/external/clang/test/Sema/ |
D | conditional-expr.c | 53 enum Enum { EVal }; in foo() enumerator 54 test0 = test0 ? EVal : test0; in foo() 55 test1 = test0 ? EVal : (int) test0; in foo() 57 (unsigned) EVal in foo() 60 …test0 = test0 ? EVal : test1; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in foo() 61 …test0 = test0 ? test1 : EVal; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in foo()
|
/external/llvm-project/clang/test/SemaCXX/ |
D | conditional-expr.cpp | 54 enum Enum { EVal }; enumerator 181 i1 = i1 ? i1 : EVal; in test() 182 i1 = i1 ? EVal : i1; in test() 218 test0 = test0 ? EVal : test0; in test() 219 test1 = test0 ? EVal : (int) test0; in test() 221 …test0 = test0 ? EVal : test1; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in test() 222 …test0 = test0 ? test1 : EVal; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in test() 224 test1 = test0 ? EVal : (int) test0; in test() 225 test1 = test0 ? (int) test0 : EVal; in test()
|
/external/clang/test/SemaCXX/ |
D | conditional-expr.cpp | 53 enum Enum { EVal }; enumerator 180 i1 = i1 ? i1 : EVal; in test() 181 i1 = i1 ? EVal : i1; in test() 217 test0 = test0 ? EVal : test0; in test() 218 test1 = test0 ? EVal : (int) test0; in test() 220 …test0 = test0 ? EVal : test1; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in test() 221 …test0 = test0 ? test1 : EVal; // expected-warning {{operand of ? changes signedness: 'int' to 'uns… in test() 223 test1 = test0 ? EVal : (int) test0; in test() 224 test1 = test0 ? (int) test0 : EVal; in test()
|
/external/llvm-project/llvm/lib/Target/VE/AsmParser/ |
D | VEAsmParser.cpp | 81 bool parseExpression(const MCExpr *&EVal); 1145 bool VEAsmParser::parseExpression(const MCExpr *&EVal) { in parseExpression() argument 1147 if (getParser().parseExpression(EVal)) in parseExpression() 1151 EVal = fixupVariantKind(EVal); in parseExpression() 1153 const MCExpr *E = extractModifierFromExpr(EVal, Variant); in parseExpression() 1155 EVal = VEMCExpr::create(Variant, E, getParser().getContext()); in parseExpression() 1183 const MCExpr *EVal; in parseMEMOperand() local 1184 if (!parseExpression(EVal)) in parseMEMOperand() 1185 Offset = VEOperand::CreateImm(EVal, S, E); in parseMEMOperand() 1290 const MCExpr *EVal; in parseMEMAsOperand() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 116 bool ParseExpression(const MCExpr *&EVal); 117 bool ParseDarwinExpression(const MCExpr *&EVal); 1368 ParseExpression(const MCExpr *&EVal) { in ParseExpression() argument 1371 return ParseDarwinExpression(EVal); in ParseExpression() 1375 if (getParser().parseExpression(EVal)) in ParseExpression() 1378 EVal = FixupVariantKind(EVal); in ParseExpression() 1381 const MCExpr *E = ExtractModifierFromExpr(EVal, Variant); in ParseExpression() 1383 EVal = PPCMCExpr::create(Variant, E, false, getParser().getContext()); in ParseExpression() 1395 ParseDarwinExpression(const MCExpr *&EVal) { in ParseDarwinExpression() argument 1423 if (getParser().parseExpression(EVal)) in ParseDarwinExpression() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 99 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc); 757 const MCExpr *EVal; in parseMembarTag() local 795 EVal = MCConstantExpr::create(ImmVal, getContext()); in parseMembarTag() 797 Operands.push_back(SparcOperand::CreateImm(EVal, S, E)); in parseMembarTag() 874 const MCExpr *EVal; in parseSparcAsmOperand() local 922 if (matchSparcAsmModifiers(EVal, E)) { in parseSparcAsmOperand() 924 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 932 if (!getParser().parseExpression(EVal, E)) in parseSparcAsmOperand() 933 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 1285 bool SparcAsmParser::matchSparcAsmModifiers(const MCExpr *&EVal, in matchSparcAsmModifiers() argument [all …]
|
/external/llvm-project/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 101 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc); 768 const MCExpr *EVal; in parseMembarTag() local 806 EVal = MCConstantExpr::create(ImmVal, getContext()); in parseMembarTag() 808 Operands.push_back(SparcOperand::CreateImm(EVal, S, E)); in parseMembarTag() 885 const MCExpr *EVal; in parseSparcAsmOperand() local 933 if (matchSparcAsmModifiers(EVal, E)) { in parseSparcAsmOperand() 935 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 943 if (!getParser().parseExpression(EVal, E)) in parseSparcAsmOperand() 944 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 1296 bool SparcAsmParser::matchSparcAsmModifiers(const MCExpr *&EVal, in matchSparcAsmModifiers() argument [all …]
|
/external/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 262 bool ParseExpression(const MCExpr *&EVal); 263 bool ParseDarwinExpression(const MCExpr *&EVal); 1469 ParseExpression(const MCExpr *&EVal) { in ParseExpression() argument 1472 return ParseDarwinExpression(EVal); in ParseExpression() 1476 if (getParser().parseExpression(EVal)) in ParseExpression() 1479 EVal = FixupVariantKind(EVal); in ParseExpression() 1482 const MCExpr *E = ExtractModifierFromExpr(EVal, Variant); in ParseExpression() 1484 EVal = PPCMCExpr::create(Variant, E, false, getParser().getContext()); in ParseExpression() 1496 ParseDarwinExpression(const MCExpr *&EVal) { in ParseDarwinExpression() argument 1524 if (getParser().parseExpression(EVal)) in ParseDarwinExpression() [all …]
|
/external/llvm/lib/Target/Sparc/AsmParser/ |
D | SparcAsmParser.cpp | 80 bool matchSparcAsmModifiers(const MCExpr *&EVal, SMLoc &EndLoc); 832 const MCExpr *EVal; in parseSparcAsmOperand() local 880 if (matchSparcAsmModifiers(EVal, E)) { in parseSparcAsmOperand() 882 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 890 if (!getParser().parseExpression(EVal, E)) in parseSparcAsmOperand() 891 Op = SparcOperand::CreateImm(EVal, S, E); in parseSparcAsmOperand() 1240 bool SparcAsmParser::matchSparcAsmModifiers(const MCExpr *&EVal, in matchSparcAsmModifiers() argument 1263 EVal = adjustPICRelocation(VK, subExpr); in matchSparcAsmModifiers()
|
/external/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 116 bool ParseExpression(const MCExpr *&EVal); 1407 ParseExpression(const MCExpr *&EVal) { in ParseExpression() argument 1410 if (getParser().parseExpression(EVal)) in ParseExpression() 1413 EVal = FixupVariantKind(EVal); in ParseExpression() 1416 const MCExpr *E = ExtractModifierFromExpr(EVal, Variant); in ParseExpression() 1418 EVal = PPCMCExpr::create(Variant, E, getParser().getContext()); in ParseExpression() 1430 const MCExpr *EVal; in ParseOperand() local 1454 if (!ParseExpression(EVal)) in ParseOperand() 1463 Operands.push_back(PPCOperand::CreateFromMCExpr(EVal, S, E, isPPC64())); in ParseOperand() 1467 if (const MCSymbolRefExpr *Ref = dyn_cast<MCSymbolRefExpr>(EVal)) in ParseOperand()
|
/external/clang/lib/Sema/ |
D | SemaDecl.cpp | 14756 const auto &EVal = E->getInitVal(); in IsValueInFlagEnum() local 14758 if (EVal.isPowerOf2()) in IsValueInFlagEnum() 14759 FlagBits = FlagBits.zextOrSelf(EVal.getBitWidth()) | EVal; in IsValueInFlagEnum()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaDecl.cpp | 17981 const auto &EVal = E->getInitVal(); in IsValueInFlagEnum() local 17983 if (EVal.isPowerOf2()) in IsValueInFlagEnum() 17984 FlagBits = FlagBits.zextOrSelf(EVal.getBitWidth()) | EVal; in IsValueInFlagEnum()
|