Home
last modified time | relevance | path

Searched refs:STCref (Results 1 – 25 of 30) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Descape.c124 if ((v->storage_class & (STCref | STCout)) == 0 && p == sc->func) in checkParamArgumentEscape()
148 if ((v->storage_class & (STCref | STCout | STCscope)) && p == sc->func) in checkParamArgumentEscape()
257 va->storage_class & STCref) && in checkAssignEscape()
323 …(va->enclosesLifetimeOf(v) && !(v->storage_class & STCparameter)) || va->storage_class & STCref) && in checkAssignEscape()
335 if ((v->storage_class & (STCref | STCout)) == 0 && p == sc->func) in checkAssignEscape()
373 if ((v->storage_class & (STCref | STCout | STCscope)) && p == sc->func) in checkAssignEscape()
607 if ((v->storage_class & (STCref | STCout)) == 0) in checkReturnEscapeImpl()
632 if ( (v->storage_class & (STCref | STCout)) && in checkReturnEscapeImpl()
964 else if ((stc & (STCref)) && (stc & STCreturn)) in escapeByValue()
986 else if (dve->var->storage_class & STCref) in escapeByValue()
[all …]
H A Dclone.c159 if (v->storage_class & STCref) in needOpAssign()
226 if (v->storage_class & STCref) in buildOpAssign()
249 TypeFunction *tf = new TypeFunction(fparams, sd->handleType(), 0, LINKd, stc | STCref); in buildOpAssign()
367 if (v->storage_class & STCref) in needOpEquals()
507 parameters->push(new Parameter(STCref | STCconst, sd->type, NULL, NULL)); in buildXopEquals()
535 parameters->push(new Parameter(STCref | STCconst, sd->type, Id::p, NULL)); in buildXopEquals()
536 parameters->push(new Parameter(STCref | STCconst, sd->type, Id::q, NULL)); in buildXopEquals()
587 parameters->push(new Parameter(STCref | STCconst, sd->type, NULL, NULL)); in buildXopCmp()
620 parameters->push(new Parameter(STCref | STCconst, sd->type, Id::p, NULL)); in buildXopCmp()
621 parameters->push(new Parameter(STCref | STCconst, sd->type, Id::q, NULL)); in buildXopCmp()
[all …]
H A Dstatementsem.c515 (storageClass & STCref && !te)) in declareVariable()
548 if (storageClass & STCref) in declareVariable()
573 if (storageClass & STCref) in declareVariable()
574 v->storage_class |= STCref | STCforeach; in declareVariable()
580 if (v->storage_class & STCref) in declareVariable()
638 if (p->storageClass & (STCout | STCref | STClazy)) in makeTupleForeachBody()
1035 if (p->storageClass & STCref) in visit()
1043 if (p->storageClass & STCref) in visit()
1063 if (var->storage_class & (STCref | STCout)) in visit()
1067 if (p->storageClass & STCref) in visit()
[all …]
H A Ddeclaration.c151 if ((storage_class & (STCforeach | STCref)) == (STCforeach | STCref)) in checkModify()
431 if (storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCdisable)) in aliasSemantic()
436 … sc2->stc |= storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCshared | STCdisable); in aliasSemantic()
1279 …if ((storage_class & (STCref | STCparameter | STCforeach | STCtemp | STCresult)) == STCref && iden… in semantic()
1313 if (!(storage_class & (STCctfe | STCref | STCresult)) && tbn->ty == Tstruct && in semantic()
1334 …if (storage_class & (STCfield | STCout | STCref | STCstatic | STCmanifest | STCtls | STCgshared) |… in semantic()
1432 sc->stc &= ~(STC_TYPECTOR | STCpure | STCnothrow | STCnogc | STCref | STCdisable); in semantic()
1760 if (storage_class & STCref) in setFieldOffset()
2107 if (storage_class & (STCnodtor | STCref | STCout | STCfield)) in callScopeDtor()
H A Ddeclaration.h58 #define STCref 0x200000LL macro
72 #define STC_FUNCATTR (STCref | STCnothrow | STCnogc | STCpure | STCproperty | STCsafe | STCtrust…
98 …STCmanifest | STCimmutable | STCshared | STCwild | STCnothrow | STCnogc | STCpure | STCref | STCtl…
158 bool isRef() { return (storage_class & STCref) != 0; } in isRef()
H A Dmtype.c5169 if (stc & STCref) in TypeFunction()
5383 stc1 |= STCref; in covariant()
5389 stc2 |= STCref; in covariant()
5484 if (sc->stc & STCref) in semantic()
5571 else if (!(fparam->storageClass & (STCref | STCout)) && in semantic()
5588 if ((fparam->storageClass & (STCref | STCwild)) == (STCref | STCwild)) in semantic()
5596 if (fparam->storageClass & (STCref | STCout)) in semantic()
5602 StorageClass stc = fparam->storageClass & (STCref | STCout); in semantic()
5624 if (fparam->storageClass & (STCref | STClazy)) in semantic()
5651 if (!(fparam->storageClass & STCref)) in semantic()
[all …]
H A Dfunc.c482 storage_class |= sc->stc & ~STCref; in semantic()
578 if (tf->isref) sc->stc |= STCref; in semantic()
601 sc->stc |= STCref; in semantic()
1321 p = new Parameter(STCref | STCconst, f->nextOf(), fdx->outId, NULL); in buildEnsureRequire()
1467 STC_TYPECTOR | STCfinal | STCtls | STCgshared | STCref | STCreturn | in semantic3()
1598 …stc |= fparam->storageClass & (STCin | STCout | STCref | STCreturn | STCscope | STClazy | STCfinal… in semantic3()
2180 if (v->storage_class & (STCref | STCout | STClazy)) in semantic3()
2494 v->storage_class |= STCref; in declareThis()
2612 vresult->storage_class |= STCref; in buildResultVar()
3348 if (p->storageClass & (STCref | STCout)) in leastAsSpecialized()
[all …]
H A Ddmangle.c822 switch (p->storageClass & (STCin | STCout | STCref | STClazy)) in visit()
830 case STCref: in visit()
H A Dsideeffect.c427 vd->storage_class |= STCref;
H A Ddstruct.c380 if (v->storage_class & STCref) in determineFields()
1439 if (v->storage_class & STCref) in isPOD()
H A Dparse.c550 case TOKref: stc = STCref; goto Lstc; in parseDeclDefs()
2022 case TOKref: stc = STCref; goto L2; in parseParameters()
2034 { stc = storageClass & (STCin | STCout | STCref | STClazy); in parseParameters()
2037 !(stc == (STCin | STCref))) in parseParameters()
2077 if (storageClass & (STCout | STCref)) in parseParameters()
3650 case TOKref: stc = STCref; goto L1; in parseStorageClasses()
4751 stc = STCref; in parseForeach()
5291 stc = STCref; in parseStatement()
H A Dexpression.c1550 bool isRef = (p->storageClass & (STCref | STCout)) != 0; in functionParameters()
1629 arg = arg->optimize(WANTvalue, (p->storageClass & (STCref | STCout)) != 0); in functionParameters()
1632 if (p->storageClass & STCref) in functionParameters()
1707 arg = arg->optimize(WANTvalue, (p->storageClass & (STCref | STCout)) != 0); in functionParameters()
1822 if (!(p && (p->storageClass & (STClazy | STCref | STCout)))) in functionParameters()
1852 const bool isRef = (parameter && (parameter->storageClass & (STCref | STCout))); in functionParameters()
6264 if (v->storage_class & (STCref | STCout)) in ConstructExp()
6282 if (v->storage_class & (STCref | STCout)) in BlitExp()
H A Ddtemplate.c797 … fparam->storageClass &= (STCin | STCout | STCref | STClazy | STCfinal | STC_TYPECTOR | STCnodtor); in evaluateConstraint()
1398 (!(fparam->storageClass & STCref) || in deduceFunctionTemplateMatch()
1574 farg = farg->optimize(WANTvalue, (fparam->storageClass & (STCref | STCout)) != 0); in deduceFunctionTemplateMatch()
1578 if ((fparam->storageClass & STCref) && in deduceFunctionTemplateMatch()
1666 if (m > MATCHnomatch && (fparam->storageClass & (STCref | STCauto)) == STCref) in deduceFunctionTemplateMatch()
7988 if (!(fparam->storageClass & STCref)) in compare()
7993 if (fparam->storageClass & STCref) in compare()
H A Ddinterpret.c209 assert(!(v->storage_class & (STCref | STCout))); in pop()
809 if (fparam->storageClass & (STCout | STCref)) in interpretFunction()
875 if ((fparam->storageClass & (STCout | STCref)) && in interpretFunction()
1172 if (v->storage_class & STCref) in stopPointersEscaping()
2245 if (v && (v->storage_class & (STCout | STCref)) && hasValue(v)) in visit()
2261 if ((e->var->storage_class & (STCref | STCout)) == 0 && in visit()
6568 bool wantRefValue = 0 != (fparam->storageClass & (STCout | STCref)); in interpret_aaApply()
7074 assert((vd->storage_class & (STCout | STCref)) in setValue()
H A Doptimize.c536 bool keep = p && (p->storageClass & (STCref | STCout)) != 0; in Expression_optimize()
H A Dhdrgen.c3109 else if (p->storageClass & STCref) in visit()
3295 { STCref, TOKref, NULL }, in stcToChars()
H A Dtraits.c1090 else if (stc & STCref) in semanticTraits()
H A Dexpressionsem.c3732 if (v && v->storage_class & STCref) in visit()
4504 if (v && !(v->storage_class & STCref)) in visit()
5111 VarDeclaration *v = copyToTemp(STCref, "__postref", exp->e1); in visit()
5535 ((VarExp *)exp->e1)->var->storage_class & (STCout | STCref)) in visit()
6351 VarDeclaration *v = copyToTemp(STCref, "__powtmp", exp->e1); in visit()
H A Ddcast.c864 if (fparam->storageClass & (STCout | STCref)) in implicitConvTo()
1141 if (fparam->storageClass & (STCout | STCref)) in implicitConvTo()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Ddeclaration.h58 #define STCref 0x40000ULL /// `ref` macro
105 #define STC_FUNCATTR (STCref | STCnothrow | STCnogc | STCpure | STCproperty | STCsafe | STCtrust…
151 bool isRef() const { return (storage_class & STCref) != 0; } in isRef()
152 bool isReference() const { return (storage_class & (STCref | STCout)) != 0; } in isReference()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/
H A Dd-target.cc373 if (arg->storageClass & (STCout | STCref)) in cppParameterType()
H A Dd-codegen.cc133 if (tb->ty == Treference || decl->storage_class & (STCout | STCref)) in declaration_reference_p()
182 if (tb->ty == Treference || arg->storageClass & (STCout | STCref)) in parameter_reference_p()
H A Dd-builtins.cc303 sc |= STCref; in build_frontend_type()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/
H A Dd-codegen.cc134 if (tb->ty == TY::Treference || decl->storage_class & (STCout | STCref)) in declaration_reference_p()
184 if (tb->ty == TY::Treference || arg->storageClass & (STCout | STCref)) in parameter_reference_p()
H A Dd-builtins.cc313 sc |= STCref; in build_frontend_type()

12