carbon-lang icon indicating copy to clipboard operation
carbon-lang copied to clipboard

SemIR fidelity when representing rewrite semantics

Open chandlerc opened this issue 1 year ago • 2 comments
trafficstars

The toolchain's Semantic IR should start off modeling the full, complex, and rich library-based and generic extension point semantics of Carbon without eliding any layers or rewrites for compile time efficiency. We shouldn't front-load elision or optimization when implementing the designs.

Once we have a full-fidelity implementation, we should work to build an efficient elision, short-circuit, or common case simplification into the design itself sufficient to make the SemIR model efficient. Only if we cannot find a reasonable approach for that should we diverge the SemIR model to optimize its efficiency, and we should preserve full fidelity in an optional mode.

chandlerc avatar Mar 29 '24 05:03 chandlerc

(the brief diff issues should be fixed now, sorry for that)

chandlerc avatar Apr 01 '24 21:04 chandlerc

(Fixed weird mis-merge, sorry about that)

chandlerc avatar May 09 '24 02:05 chandlerc

Ping? It's been a while since update...

chandlerc avatar May 23 '24 01:05 chandlerc