From caf6f7a03793be3fc74683994414776f3604ad8a Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 17 Jan 2018 14:48:07 -0500 Subject: All compiler fixes to get ir branch work with falcor feature demo. - support overloaded generic function. this involves adding a new expression type, `OverloadedExpr2` to hold the candidate expressions for the generic function decl being referenced. - make BitNot a normal IROp instead of an IRPseudoOp - make sure we clone the decorations of parameters when cloning ir functions - propagate geometry shader entry point attributes (`[maxvertexcount]` and `[instance]`) through HLSL emit - IR emit: handle geometry shader entry-point parameter decorations, such as 'triangle'. - IR emit: treat geometry shader stream output typed ir value as `should fold into use`. --- source/slang/expr-defs.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/slang/expr-defs.h') diff --git a/source/slang/expr-defs.h b/source/slang/expr-defs.h index e3c16a674..4b47cc883 100644 --- a/source/slang/expr-defs.h +++ b/source/slang/expr-defs.h @@ -30,6 +30,18 @@ SYNTAX_CLASS(OverloadedExpr, Expr) FIELD(LookupResult, lookupResult2) END_SYNTAX_CLASS() +// An expression that references an overloaded set of declarations +// having the same name. +SYNTAX_CLASS(OverloadedExpr2, Expr) + + // Optional: the base expression is this overloaded result + // arose from a member-reference expression. + SYNTAX_FIELD(RefPtr, base) + + // The lookup result that was ambiguous + FIELD(List>, candidiateExprs) +END_SYNTAX_CLASS() + SYNTAX_CLASS(ConstantExpr, Expr) FIELD(Token, token) -- cgit v1.2.3