Skip to content

Add cleaner symbol visibility syntax for all flow/hal/vm types #4670

Closed

Description

@benvanik

Upstream made the symbol visibility attribute part of the syntax of ops like func. It's awesome. It'd be nice to update our ops:

hal.variable @_executable_exe init(@_executable_exe_initializer) : !hal.executable attributes {sym_visibility = "private"}

->

hal.variable private @executable_exe init(@_executable_exe_initializer) : !hal.executable

flow/hal.variable, vm.global, vm.func, hal.executable, etc etc all could get these changes. Basically, we shouldn't have any sym_visibility bits in our IR. There's no functional change here but things will get much easier to hand-write and read and make our IR match the upstream canonical types making it easier for people to move between the two.

Activity

  1. added
    good first issue 🌱
    compiler/dialects
    quality of life 😊
    on Jan 30, 2021
  2. benvanik commented on Aug 30, 2021

    @benvanik
    CollaboratorAuthor
  3. self-assigned this
    on Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

compiler/dialectsgood first issue 🌱quality of life 😊

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions