/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
H A D | constfold.c | 784 StringExp *es2 = (StringExp *)e2; in Equal() 802 StringExp *es1 = (StringExp *)e1; in Equal() 818 StringExp *es1 = (StringExp *)e1; in Equal() 819 StringExp *es2 = (StringExp *)e2; in Equal() 871 StringExp *es1 = (StringExp *)e1; in Equal() 1039 StringExp *es1 = (StringExp *)e1; in Cmp() 1040 StringExp *es2 = (StringExp *)e2; in Cmp() 1272 StringExp *es1 = (StringExp *)e1; in ArrayLength() 1311 StringExp *es1 = (StringExp *)e1; in Index() 1415 StringExp *es1 = (StringExp *)e1; in Slice() [all …]
|
H A D | ctfeexpr.c | 129 StringExp *se = e->toStringExp(); in generateUncaughtError() 250 StringExp *se = (StringExp *)e; in copyLiteral() 253 new(&ue) StringExp(se->loc, s, se->len); in copyLiteral() 254 StringExp *se2 = (StringExp *)ue.exp(); in copyLiteral() 532 return ((StringExp *)e)->len; in resolveArrayLength() 594 StringExp *createBlockDuplicatedStringLiteral(UnionExp *pue, Loc loc, Type *type, in createBlockDuplicatedStringLiteral() 608 new(pue) StringExp(loc, s, dim); in createBlockDuplicatedStringLiteral() 609 StringExp *se = (StringExp *)pue->exp(); in createBlockDuplicatedStringLiteral() 803 if (((StringExp *)agg1)->string == ((StringExp *)agg2)->string) in pointerDifference() 1123 StringExp *se1 = (x->op == TOKstring) ? (StringExp *)x : NULL; in ctfeCmpArrays() [all …]
|
H A D | traits.c | 208 p->mods->push(new StringExp(Loc(), const_cast<char *>(str))); in fp() 651 StringExp *se = new StringExp(e->loc, const_cast<char *>(id->toChars())); in semanticTraits() 679 StringExp *se = new StringExp(e->loc, const_cast<char *>(protName)); in semanticTraits() 741 StringExp *se = ex->toStringExp(); in semanticTraits() 890 exps->push(new StringExp(e->loc, const_cast<char *>(ad->aliasthis->ident->toChars()))); in semanticTraits() 1012 StringExp *se = new StringExp(e->loc, const_cast<char*>(style)); in semanticTraits() 1084 exps->push(new StringExp(e->loc, const_cast<char *>("auto"))); in semanticTraits() 1086 exps->push(new StringExp(e->loc, const_cast<char *>("return"))); in semanticTraits() 1089 exps->push(new StringExp(e->loc, const_cast<char *>("out"))); in semanticTraits() 1091 exps->push(new StringExp(e->loc, const_cast<char *>("ref"))); in semanticTraits() [all …]
|
H A D | expression.h | 47 class StringExp; variable 159 virtual StringExp *toStringExp(); 349 StringExp *toStringExp(); 353 class StringExp : public Expression 363 StringExp(Loc loc, char *s); 364 StringExp(Loc loc, void *s, size_t len); 365 StringExp(Loc loc, void *s, size_t len, utf8_t postfix); 366 static StringExp *create(Loc loc, char *s); 367 static StringExp *create(Loc loc, void *s, size_t len); 369 StringExp *toStringExp(); [all …]
|
H A D | expression.c | 2178 StringExp *Expression::toStringExp() in toStringExp() 3434 StringExp *NullExp::toStringExp() in toStringExp() 3438 StringExp *se = new StringExp(loc, (char*)mem.xcalloc(1, 1), 0); in toStringExp() 3447 StringExp::StringExp(Loc loc, char *string) in StringExp() function 3448 : Expression(loc, TOKstring, sizeof(StringExp)) in StringExp() 3458 StringExp::StringExp(Loc loc, void *string, size_t len) in StringExp() function 3459 : Expression(loc, TOKstring, sizeof(StringExp)) in StringExp() 3469 StringExp::StringExp(Loc loc, void *string, size_t len, utf8_t postfix) in StringExp() function 3470 : Expression(loc, TOKstring, sizeof(StringExp)) in StringExp() 3480 StringExp *StringExp::create(Loc loc, char *s) in create() [all …]
|
H A D | iasmgcc.c | 327 if (s->insn->op != TOKstring || ((StringExp *) s->insn)->sz != 1) in gccAsmSemantic() 349 assert(e->op == TOKstring && ((StringExp *) e)->sz == 1); in gccAsmSemantic() 361 assert(e->op == TOKstring && ((StringExp *) e)->sz == 1); in gccAsmSemantic()
|
H A D | attrib.c | 33 StringExp *semanticString(Scope *sc, Expression *exp, const char *s); 505 if (StringExp *se = msg->toStringExp()) in getMessage() 968 StringExp *se = e->toStringExp(); in semantic() 987 StringExp *se = semanticString(sc, (*args)[0], "library name"); in semantic() 1051 StringExp *se = semanticString(sc, (*args)[0], "mangled name"); in semantic() 1156 if (StringExp *se = (*args)[0]->toStringExp()) in semantic() 1588 StringExp *se = semanticString(sc, exp, "argument to mixin"); in compileIt()
|
H A D | staticassert.c | 74 if (StringExp * se = msg->toStringExp()) in semantic2()
|
H A D | dcast.c | 101 void visit(StringExp *e) in implicitCastTo() 108 ((StringExp *)result)->committed = e->committed; in implicitCastTo() 533 void visit(StringExp *e) in implicitConvTo() 1625 void visit(StringExp *e) in castTo() 1642 StringExp *se = e; in castTo() 1645 se = (StringExp *)e->copy(); in castTo() 1669 se = (StringExp *)e->copy(); in castTo() 1684 se = (StringExp *)e->copy(); in castTo() 1709 se = (StringExp *)e->copy(); in castTo() 1718 se = (StringExp *)e->copy(); in castTo() [all …]
|
H A D | ctfe.h | 151 StringExp *createBlockDuplicatedStringLiteral(UnionExp *pue, Loc loc, Type *type,
|
H A D | dinterpret.c | 1897 void visit(StringExp *e) in visit() 3712 StringExp *existingSE = (StringExp *)aggregate; in assignToLvalue() 3923 upperbound = ((StringExp *)e1)->len; in interpretAssignToSlice() 3953 StringExp *existingSE = (StringExp *)aggregate; in interpretAssignToSlice() 3987 … sliceAssignStringFromString((StringExp *)existingSE, (StringExp *)newval, (size_t)firstIndex); in interpretAssignToSlice() 4120 … sliceAssignArrayLiteralFromString(existingAE, (StringExp *)newval, (size_t)firstIndex); in interpretAssignToSlice() 5517 ((StringExp *)result)->ownedByCtfe = OWNEDctfe; in visit() 6266 ((StringExp *)e)->ownedByCtfe = OWNEDcode; in scrubReturnValue() 6399 ((StringExp *)e)->ownedByCtfe = OWNEDcache; in scrubCacheValue() 6637 StringExp *se = NULL; in foreachApplyUtf() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
H A D | constfold.d | 731 else if (StringExp es2 = e2.isStringExp()) in Equal() 747 if (StringExp es1 = e1.isStringExp()) in Equal() 763 StringExp es1 = e1.isStringExp(); in Equal() 764 StringExp es2 = e2.isStringExp(); in Equal() 814 StringExp es1 = e1.isStringExp(); in Equal() 972 StringExp es1 = e1.isStringExp(); in Cmp() 973 StringExp es2 = e2.isStringExp(); in Cmp() 1197 if (StringExp es1 = e1.isStringExp()) in ArrayLength() 1231 StringExp es1 = e1.isStringExp(); in Index() 1340 StringExp es1 = e1.isStringExp(); in Slice() [all …]
|
H A D | mustuse.d | 20 private static const StringExp plusPlus, minusMinus; 26 plusPlus = new StringExp(Loc.initial, "++"); in this() 27 minusMinus = new StringExp(Loc.initial, "--"); in this()
|
H A D | expression.h | 40 class StringExp; variable 105 virtual StringExp *toStringExp(); 143 StringExp* isStringExp(); 361 StringExp *toStringExp(); 365 class StringExp : public Expression 375 static StringExp *create(const Loc &loc, const char *s); 376 static StringExp *create(const Loc &loc, const void *s, d_size_t len); 381 StringExp *toStringExp(); 382 StringExp *toUTF8(Scope *sc); 428 StringExp *toStringExp(); [all …]
|
H A D | cppmangle.d | 1233 StringExp str = exp.toStringExp(); in mangleTemplatedFunction() 2384 private Array!StringExp written; 2424 void writeElem (StringExp exp) in writeElem() 2465 private size_t closestIndex (const(StringExp)[] slice, StringExp exp, out bool exact) in closestIndex() 2469 const StringExp* first = slice.ptr; in closestIndex() 2489 auto s1 = new StringExp(Loc.initial, "Amande"); 2490 auto s2 = new StringExp(Loc.initial, "Baguette"); 2491 auto s3 = new StringExp(Loc.initial, "Croissant"); 2492 auto s4 = new StringExp(Loc.initial, "Framboises"); 2493 auto s5 = new StringExp(Loc.initial, "Proscuitto"); [all …]
|
H A D | traits.d | 813 auto se = new StringExp(e.loc, id.toString()); in semanticTraits() 841 auto se = new StringExp(e.loc, protName); in semanticTraits() 958 StringExp se = semanticString(sc, ex, "__traits(toType, string)"); in semanticTraits() 1002 StringExp se = ex.toStringExp(); in semanticTraits() 1250 exps.push(new StringExp(e.loc, ad.aliasthis.ident.toString())); in semanticTraits() 1324 mods.push(new StringExp(Loc.initial, str)); in semanticTraits() 1396 auto se = new StringExp(e.loc, style); in semanticTraits() 1471 exps.push(new StringExp(e.loc, s)); in semanticTraits() 1564 auto se = new StringExp(e.loc, linkage.toDString()); in semanticTraits() 1704 auto se = new StringExp(e.loc, id.toString()); in semanticTraits() [all …]
|
H A D | ctfeexpr.d | 149 StringExp se = e.toStringExp(); in generateUncaughtError() 288 emplaceExp!(StringExp)(&ue, se.loc, s[0 .. se.len * se.sz], se.len, se.sz); in copyLiteral() 289 StringExp se2 = ue.exp().isStringExp(); in copyLiteral() 609 StringExp createBlockDuplicatedStringLiteral(UnionExp* pue, const ref Loc loc, Type type, dchar val… in createBlockDuplicatedStringLiteral() 629 emplaceExp!(StringExp)(pue, loc, s[0 .. dim * sz], dim, sz); in createBlockDuplicatedStringLiteral() 1446 StringExp es1 = e2.isStringExp(); in ctfeCat() 1466 emplaceExp!(StringExp)(&ue, loc, s[0 .. len * sz], len, sz); in ctfeCat() 1467 StringExp es = ue.exp().isStringExp(); in ctfeCat() 1476 StringExp es1 = e1.isStringExp(); in ctfeCat() 1496 emplaceExp!(StringExp)(&ue, loc, s[0 .. len * sz], len, sz); in ctfeCat() [all …]
|
H A D | arrayop.d | 234 tiargs.push(new StringExp(Loc.initial, buf.extractSlice()).expressionSemantic(sc)); in buildArrayOp() 250 tiargs.push(new StringExp(Loc.initial, EXPtoString(e.op)).expressionSemantic(sc)); in buildArrayOp()
|
H A D | iasmgcc.d | 351 assert(e.op == EXP.string_ && (cast(StringExp) e).sz == 1); in gccAsmSemantic() 363 assert(e.op == EXP.string_ && (cast(StringExp) e).sz == 1); in gccAsmSemantic()
|
H A D | expression.d | 571 char[__traits(classInstanceSize, StringExp)] stringexp; 967 StringExp toStringExp() in toStringExp() 1637 … inout(StringExp) isStringExp() { return op == EXP.string_ ? cast(typeof(return))this : null; } in isStringExp() 2405 override StringExp toStringExp() in toStringExp() 2409 auto se = new StringExp(loc, (cast(char*)mem.xcalloc(1, 1))[0 .. 0]); in toStringExp() 2425 extern (C++) final class StringExp : Expression 2442 super(loc, EXP.string_, __traits(classInstanceSize, StringExp)); in this() 2450 super(loc, EXP.string_, __traits(classInstanceSize, StringExp)); 2457 static StringExp create(const ref Loc loc, const(char)* s) in create() 2459 return new StringExp(loc, s.toDString()); in create() [all …]
|
H A D | dstruct.d | 571 StringExp se = cast(StringExp)exp; in _isZeroInit()
|
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/ |
H A D | d-attribs.cc | 283 StringExp *se = (StringExp*) e0; in build_attributes() 307 if (e->op == TOKstring && ((StringExp *) e)->sz == 1) in build_attributes() 309 StringExp *s = (StringExp *) e; in build_attributes()
|
H A D | toir.cc | 1317 StringExp *insn = (StringExp *)s->insn; in visit() 1332 StringExp *constr = (StringExp *)(*s->constraints)[i]; in visit() 1358 StringExp *clobber = (StringExp *)(*s->clobbers)[i]; in visit()
|
/netbsd-src/external/gpl3/gcc/dist/gcc/d/ |
H A D | toir.cc | 1330 StringExp *insn = s->insn->toStringExp (); in visit() 1345 StringExp *constr = (*s->constraints)[i]->toStringExp (); in visit() 1371 StringExp *clobber = (*s->clobbers)[i]->toStringExp (); in visit()
|
H A D | ChangeLog-2018 | 286 * expr.cc (ExprVisitor::visit(StringExp)): Likewise. 488 * expr.cc (ExprVisitor::visit(StringExp)): Copy string literal from 511 * expr.cc (ExprVisitor::visit(StringExp)): Include null terminator
|