Helpers for compiler extensions