Home
last modified time | relevance | path

Searched refs:IntegerExp (Results 1 – 25 of 62) sorted by relevance

123

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dconstfold.c91 new(&ue) IntegerExp(loc, -e1->toInteger(), type); in Neg()
101 new(&ue) IntegerExp(loc, ~e1->toInteger(), type); in Com()
110 new(&ue) IntegerExp(loc, e1->isBool(false) ? 1 : 0, type); in Not()
119 new(&ue) IntegerExp(loc, e1->isBool(true) ? 1 : 0, type); in Bool()
228 new(&ue) IntegerExp(loc, e1->toInteger() + e2->toInteger(), type); in Add()
333 new(&ue) IntegerExp(loc, e1->toInteger() - e2->toInteger(), type); in Min()
385 new(&ue) IntegerExp(loc, e1->toInteger() * e2->toInteger(), type); in Mul()
466 new(&ue) IntegerExp(loc, n, type); in Div()
545 new(&ue) IntegerExp(loc, n, type); in Mod()
588 new(&ur) IntegerExp(loc, e1->toInteger(), e1->type); in Pow()
[all …]
H A Doptimize.c840 ret = new AndExp(e->loc, e->e2, new IntegerExp(e->loc, 1, e->e2->type)); in Expression_optimize()
842 …ret = new CondExp(e->loc, ret, new IntegerExp(e->loc, -1L, e->type), new IntegerExp(e->loc, 1L, e-… in Expression_optimize()
852 ret = new IntegerExp(e->loc, 1, e->e1->type); in Expression_optimize()
887 e->e2 = new IntegerExp(e->loc, e->e2->toInteger(), Type::tint64); in Expression_optimize()
908 … Expression *shift = new MulExp(e->loc, e->e2, new IntegerExp(e->loc, mul, e->e2->type)); in Expression_optimize()
911 ret = new ShlExp(e->loc, new IntegerExp(e->loc, 1, e->e1->type), shift); in Expression_optimize()
1031 Expression *dollar = new IntegerExp(Loc(), len, Type::tsize_t); in Expression_optimize()
1108 ret = new IntegerExp(e->loc, 0, Type::tbool); in Expression_optimize()
1127 ret = new IntegerExp(e->loc, n1 && n2, e->type); in Expression_optimize()
1151 ret = new IntegerExp(e->loc, 1, Type::tbool); in Expression_optimize()
[all …]
H A Ddinterpret.c1882 void visit(IntegerExp *e) in visit()
1964 Expression *elwr = new IntegerExp(e->loc, e->offset / elemsize, Type::tsize_t); in visit()
1965 Expression *eupr = new IntegerExp(e->loc, e->offset / elemsize + d, Type::tsize_t); in visit()
2011 IntegerExp *ofs = new IntegerExp(e->loc, indx, Type::tsize_t); in visit()
2093 return new IntegerExp(loc, 1, Type::tbool); in getVarExp()
2909 IndexExp *ei = new IndexExp(e->loc, ae, new IntegerExp(Loc(), 0, Type::tsize_t)); in visit()
3075 new(pue) IntegerExp(e->loc, cmp, e->type); in interpretCompareCommon()
3098 new(pue) IntegerExp(e->loc, cmp, e->type); in interpretCompareCommon()
3863 Expression *dollarExp = new IntegerExp(e1->loc, dollar, Type::tsize_t); in interpretAssignToSlice()
4015 new IntegerExp(e->loc, firstIndex, Type::tsize_t), in interpretAssignToSlice()
[all …]
H A Dcond.c109 IntegerExp *index = new IntegerExp(sfe->loc, i, Type::tsize_t); in lowerArrayAggregate()
313 s1->push(new ExpStatement(aloc, new AssertExp(aloc, new IntegerExp(aloc, 0, Type::tint32)))); in lowerNonArrayAggregate()
357 (*exps)[i] = new IntegerExp(aloc, lwr + i, indexty); in lowerNonArrayAggregate()
363 (*exps)[i] = new IntegerExp(aloc, upr - i, indexty); in lowerNonArrayAggregate()
H A Dclone.c857 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t), in buildPostBlit()
858 new IntegerExp(loc, n, Type::tsize_t)); in buildPostBlit()
909 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t), in buildPostBlit()
910 new IntegerExp(loc, n, Type::tsize_t)); in buildPostBlit()
1055 ex = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type::tsize_t), in buildDtor()
1056 new IntegerExp(loc, n, Type::tsize_t)); in buildDtor()
H A Dctfeexpr.c458 new IntegerExp(Loc(), 0, Type::tsize_t), ArrayLength(Type::tsize_t, lit).copy()); in paintTypeOntoLiteralCopy()
464 new IntegerExp(Loc(), 0, Type::tsize_t), ArrayLength(Type::tsize_t, lit).copy()); in paintTypeOntoLiteralCopy()
799 new(&ue) IntegerExp(loc, (ofs1 - ofs2) * sz, type); in pointerDifference()
807 new(&ue) IntegerExp(loc, (ofs1 - ofs2) * sz, type); in pointerDifference()
813 new(&ue) IntegerExp(loc, ofs1 - ofs2, type); in pointerDifference()
912 new IntegerExp(loc, indx, Type::tsize_t), in pointerArithmetic()
913 new IntegerExp(loc, indx + dim, Type::tsize_t)); in pointerArithmetic()
921 IntegerExp *ofs = new IntegerExp(loc, indx, Type::tsize_t); in pointerArithmetic()
1589 return new IntegerExp(loc, es1->charAt(indx), type); in ctfeIndex()
H A Ddenum.c650 Expression *e = new IntegerExp(loc, 0, Type::tint32); in semantic()
706 e = new AddExp(loc, eprev, new IntegerExp(loc, 1, Type::tint32)); in semantic()
715 origValue = new AddExp(loc, emprev->origValue, new IntegerExp(loc, 1, Type::tint32)); in semantic()
H A Dexpression.c1117 IntegerExp integerexp(0); in arrayExpressionToCommonType()
1921 …ression *e = new AssignExp(gate->loc, new VarExp(gate->loc, gate), new IntegerExp(gate->loc, 1, Ty… in functionParameters()
2857 IntegerExp::IntegerExp(Loc loc, dinteger_t value, Type *type) in IntegerExp() function
2858 : Expression(loc, TOKint64, sizeof(IntegerExp)) in IntegerExp()
2873 IntegerExp::IntegerExp(dinteger_t value) in IntegerExp() function
2874 : Expression(Loc(), TOKint64, sizeof(IntegerExp)) in IntegerExp()
2880 IntegerExp *IntegerExp::create(Loc loc, dinteger_t value, Type *type) in create()
2882 return new IntegerExp(loc, value, type); in create()
2885 bool IntegerExp::equals(RootObject *o) in equals()
2891 IntegerExp *ne = (IntegerExp *)o; in equals()
[all …]
H A Dstatementsem.c669 Initializer *ie = new ExpInitializer(Loc(), new IntegerExp(k)); in makeTupleForeachBody()
706 … Expression *init_ = new IndexExp(loc, access, new IntegerExp(loc, l, Type::tsize_t)); in makeTupleForeachBody()
1163 … fs->key->_init = new ExpInitializer(loc, new IntegerExp(loc, 0, fs->key->type)); in visit()
1188 …increment = new AddAssignExp(loc, new VarExp(loc, fs->key), new IntegerExp(loc, 1, fs->key->type)); in visit()
1517 s = new ReturnStatement(Loc(), new IntegerExp(fs->cases->dim + 1)); in visit()
1596 exps->push(new IntegerExp(Loc(), keysize, Type::tsize_t)); in visit()
1725 s = new CaseStatement(Loc(), new IntegerExp(i + 2), s); in visit()
1785 Expression *limit = new MinExp(loc, fs->upr, new IntegerExp(1)); in visit()
2352 … s = new ExpStatement(ss->loc, new AssertExp(ss->loc, new IntegerExp(ss->loc, 0, Type::tint32))); in visit()
2592 Expression *e = new IntegerExp(crs->loc, i, crs->first->type); in visit()
[all …]
H A Dtraits.c131 static Expression *True(TraitsExp *e) { return new IntegerExp(e->loc, true, Type::tbool); } in True()
132 static Expression *False(TraitsExp *e) { return new IntegerExp(e->loc, false, Type::tbool); } in False()
478 exps->push(new IntegerExp(e->loc, sz, Type::tsize_t)); in pointerBitmap()
480 exps->push(new IntegerExp(e->loc, data[(size_t)i], Type::tsize_t)); in pointerBitmap()
872 return new IntegerExp(e->loc, cd->structsize, Type::tsize_t); in semanticTraits()
1468 return new IntegerExp(e->loc, fd->vtblIndex, Type::tptrdiff_t); in semanticTraits()
H A Ddsymbol.c1615 Expression *e = new IntegerExp(Loc(), td->objects->dim, Type::tsize_t); in search()
1627 Expression *e = new IntegerExp(Loc(), type->arguments->dim, Type::tsize_t); in search()
1697 Expression *e = new IntegerExp(Loc(), ((TupleExp *)ce)->exps->dim, Type::tsize_t); in search()
1733 Expression *edim = new IntegerExp(Loc(), dim, Type::tsize_t); in search()
H A Dexpression.h224 class IntegerExp : public Expression
229 IntegerExp(Loc loc, dinteger_t value, Type *type);
230 IntegerExp(dinteger_t value);
231 static IntegerExp *create(Loc loc, dinteger_t value, Type *type);
1518 char integerexp[sizeof(IntegerExp)];
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dconstfold.d106 emplaceExp!(IntegerExp)(&ue, loc, -e1.toInteger(), type); in Neg()
115 emplaceExp!(IntegerExp)(&ue, loc, ~e1.toInteger(), type); in Com()
126 emplaceExp!(IntegerExp)(&ue, loc, e1.toBool().hasValue(false) ? 1 : 0, type); in Not()
231 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() + e2.toInteger(), type); in Add()
328 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() - e2.toInteger(), type); in Min()
377 emplaceExp!(IntegerExp)(&ue, loc, e1.toInteger() * e2.toInteger(), type); in Mul()
452 emplaceExp!(IntegerExp)(&ue, loc, n, type); in Div()
517 emplaceExp!(IntegerExp)(&ue, loc, n, type); in Mod()
557 emplaceExp!(IntegerExp)(&ur, loc, e1.toInteger(), e1.type); in Pow()
558 emplaceExp!(IntegerExp)(&uv, loc, 1, e1.type); in Pow()
[all …]
H A Dtraits.d415 (*exps)[0] = new IntegerExp(e.loc, sz, Type.tsize_t); in pointerBitmap()
417 (*exps)[i] = new IntegerExp(e.loc, data[cast(size_t) (i - 1)], Type.tsize_t); in pointerBitmap()
456 static IntegerExp True() in semanticTraits()
458 return IntegerExp.createBool(true); in semanticTraits()
461 static IntegerExp False() in semanticTraits()
463 return IntegerExp.createBool(false); in semanticTraits()
504 IntegerExp isX(T)(bool delegate(T) fp) in semanticTraits()
1237 return new IntegerExp(e.loc, cd.structsize, Type.tsize_t); in semanticTraits()
1351 return IntegerExp.createBool(value); in semanticTraits()
1880 return new IntegerExp(e.loc, fd.vtblIndex, Type.tptrdiff_t); in semanticTraits()
[all …]
H A Doptimize.d236 Expression dollar = new IntegerExp(Loc.initial, len, Type.tsize_t); in setLengthVarIfKnown()
257 Expression dollar = new IntegerExp(Loc.initial, len, Type.tsize_t); in setLengthVarIfKnown()
477 …static bool getVarAndOffset(Expression e, out VarDeclaration var, out IntegerExp eint, ref uint of… in Expression_optimize()
541 IntegerExp eint; in Expression_optimize()
555 ret = new IntegerExp(e.loc, eint.toInteger() + offset, e.type); in Expression_optimize()
628 ret = new AddExp(e.loc, pe, new IntegerExp(e.loc, offset, Type.tsize_t)); in Expression_optimize()
1039 e.e2 = new IntegerExp(e.loc, e.e2.toInteger(), Type.tint64); in Expression_optimize()
1199 ret = IntegerExp.createBool(oror); in Expression_optimize()
1217 ret = new IntegerExp(e.loc, oror ? (n1 || n2) : (n1 && n2), e.type); in Expression_optimize()
H A Ddinterpret.d1770 result = ctfeEmplaceExp!IndexExp(e.loc, result, IntegerExp.literal!0); in visit()
1806 override void visit(IntegerExp e) in visit()
1908 … Expression elwr = ctfeEmplaceExp!IntegerExp(e.loc, e.offset / elemsize, Type.tsize_t); in visit()
1909 … Expression eupr = ctfeEmplaceExp!IntegerExp(e.loc, e.offset / elemsize + d, Type.tsize_t); in visit()
1954 auto ofs = ctfeEmplaceExp!IntegerExp(e.loc, indx, Type.tsize_t); in visit()
2058 return IntegerExp.createBool(true); in getVarExp()
2918 …auto ei = ctfeEmplaceExp!IndexExp(e.loc, ae, ctfeEmplaceExp!IntegerExp(Loc.initial, 0, Type.tsize_… in visit()
3155 result = IntegerExp.createBool(cmp != 0); in interpretCompareCommon()
3158 emplaceExp!(IntegerExp)(pue, e.loc, cmp, e.type); in interpretCompareCommon()
3183 result = IntegerExp.createBool(cmp); in interpretCompareCommon()
[all …]
H A Dcond.d169 auto index = new IntegerExp(loc, i, Type.tsize_t); in private()
369 s1.push(new ExpStatement(aloc, new AssertExp(aloc, IntegerExp.literal!0))); in lowerNonArrayAggregate()
412 (*exps)[i] = new IntegerExp(aloc, lwr + i, indexty); in lowerNonArrayAggregate()
418 (*exps)[i] = new IntegerExp(aloc, upr - i, indexty); in lowerNonArrayAggregate()
H A Dstatementsem.d538 cond = IntegerExp.createBool(true); in package()
888 … ss.statement = new ReturnStatement(Loc.initial, new IntegerExp(fs.cases.dim + 1)); in package()
1097 fs.key._init = new ExpInitializer(loc, new IntegerExp(loc, 0, fs.key.type)); in package()
1122 … increment = new AddAssignExp(loc, new VarExp(loc, fs.key), new IntegerExp(loc, 1, fs.key.type)); in package()
1569 exps.push(new IntegerExp(Loc.initial, keysize, Type.tsize_t)); in package()
1598 s = new CaseStatement(Loc.initial, new IntegerExp(i + 2), c); in package()
1718 Expression limit = new MinExp(loc, fs.upr, IntegerExp.literal!1); in package()
2341 s = new ExpStatement(ss.loc, new AssertExp(ss.loc, IntegerExp.literal!0)); in package()
2354 (*args)[1] = new IntegerExp(ss.loc.linnum); in package()
2455 (*ss.cases)[c.index].exp = new IntegerExp(i++); in package()
[all …]
H A Dclone.d946 SliceExp se = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type.tsize_t), in buildDtors()
947 new IntegerExp(loc, n, Type.tsize_t)); in buildDtors()
1073 …w Parameter(STC.undefined_, Type.tuns32, Identifier.idPool("del"), new IntegerExp(dtor.loc, 0, Typ… in buildWindowsCppDtor()
1300 auto se = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type.tsize_t), in buildPostBlit()
1301 new IntegerExp(loc, length, Type.tsize_t)); in buildPostBlit()
1377 auto se = new SliceExp(loc, ex, new IntegerExp(loc, 0, Type.tsize_t), in buildPostBlit()
1378 new IntegerExp(loc, length, Type.tsize_t)); in buildPostBlit()
H A Dexpression.h132 IntegerExp* isIntegerExp();
244 class IntegerExp : public Expression
249 static IntegerExp *create(const Loc &loc, dinteger_t value, Type *type);
262 static IntegerExp literal();
1376 char integerexp[sizeof(IntegerExp)];
H A Dctfeexpr.d472 …emplaceExp!(SliceExp)(&ue, lit.loc, lit, ctfeEmplaceExp!IntegerExp(Loc.initial, 0, Type.tsize_t), … in paintTypeOntoLiteralCopy()
477 …emplaceExp!(SliceExp)(&ue, lit.loc, lit, ctfeEmplaceExp!IntegerExp(Loc.initial, 0, Type.tsize_t), … in paintTypeOntoLiteralCopy()
801 emplaceExp!(IntegerExp)(pue, loc, (ofs1 - ofs2) * sz, type); in pointerDifference()
808 emplaceExp!(IntegerExp)(pue, loc, (ofs1 - ofs2) * sz, type); in pointerDifference()
813 emplaceExp!(IntegerExp)(pue, loc, ofs1 - ofs2, type); in pointerDifference()
899 ctfeEmplaceExp!IntegerExp(loc, indx, Type.tsize_t), in pointerArithmetic()
900 ctfeEmplaceExp!IntegerExp(loc, indx + dim, Type.tsize_t)); in pointerArithmetic()
907 auto ofs = ctfeEmplaceExp!IntegerExp(loc, indx, Type.tsize_t); in pointerArithmetic()
1564 emplaceExp!IntegerExp(pue, loc, es1.getCodeUnit(cast(size_t) indx), type); in ctfeIndex()
H A Dexpression.d566 char[__traits(classInstanceSize, IntegerExp)] integerexp;
1626 … inout(IntegerExp) isIntegerExp() { return op == EXP.int64 ? cast(typeof(return))this : null; } in isIntegerExp()
1775 extern (C++) final class IntegerExp : Expression
1781 super(loc, EXP.int64, __traits(classInstanceSize, IntegerExp)); in this()
1797 super(Loc.initial, EXP.int64, __traits(classInstanceSize, IntegerExp)); in this()
1802 static IntegerExp create(const ref Loc loc, dinteger_t value, Type type) in create()
1804 return new IntegerExp(loc, value, type); in create()
1810 emplaceExp!(IntegerExp)(pue, loc, value, type); in emplace()
1946 override IntegerExp syntaxCopy() in syntaxCopy()
1960 static IntegerExp literal(int v)() in literal()
[all …]
H A Dtypesem.d2392 e = new IntegerExp(loc, sz, Type.tsize_t); in getProperty()
2399 e = new IntegerExp(loc, actualAlignment, Type.tsize_t); in getProperty()
2480 return new IntegerExp(loc, i, mt); in getProperty()
2485 return new IntegerExp(loc, i, Type.tint32); in getProperty()
2751 e = new IntegerExp(loc, mt.arguments.dim, Type.tsize_t); in getProperty()
3399 return new IntegerExp(e.loc, v.offset, Type.tsize_t); in dotExp()
3648 exps.push(new IndexExp(e.loc, ev, new IntegerExp(e.loc, i, Type.tsize_t))); in dotExp()
3677 return new IntegerExp(se.loc, se.len, Type.tsize_t); in dotExp()
3681 return new IntegerExp(e.loc, 0, Type.tsize_t); in dotExp()
4321 e = new AddExp(e.loc, e, IntegerExp.literal!1); in dotExp()
[all …]
H A Dprintast.d53 override void visit(IntegerExp e) in visit()
H A Dexpressionsem.d124 IntegerExp ie = e4.isIntegerExp(); in expressionsToString()
128 auto tsa = new TypeSArray(ie.type, IntegerExp.literal!1); in expressionsToString()
251 Expression edim = new IntegerExp(ae.loc, i, Type.tsize_t); in resolveOpDollar()
1056 e1 = new IndexExp(loc, e1, IntegerExp.literal!1);
1395 scope IntegerExp integerexp = IntegerExp.literal!0; in arrayExpressionToCommonType()
2380 … auto e = new AssignExp(gate.loc, new VarExp(gate.loc, gate), IntegerExp.createBool(true)); in functionParameters()
2550 override void visit(IntegerExp e) in visit()
5464 result = IntegerExp.createBool(true); in visit()
5489 result = IntegerExp.createBool(true); in visit()
5493 result = IntegerExp.createBool(false); in visit()
[all …]

123