Skip to content

Conversation

@sitio-couto
Copy link
Collaborator

@sitio-couto sitio-couto commented Nov 2, 2023

Stack from ghstack (oldest at bottom):

Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

  • A few embellishments are added to make the code more dev-friendly
  • Addition of a CIRTypesDetails.h file to keep custom storage definitions
  • The CIR_AnyCIRType constraint is removed, as it is not used and must
    be defined in C++ to ensure StructType is a part of it.

Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

[ghstack-poisoned]
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. First round of review: is there any new thing that gets added here besides said embellishments or should we expect this to be NFC?

Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

[ghstack-poisoned]
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, one minor missing piece.

@bcardosolopes
Copy link
Member

Awesome. First round of review: is there any new thing that gets added here besides said embellishments or should we expect this to be NFC?

What's the answer here?

@sitio-couto
Copy link
Collaborator Author

sitio-couto commented Nov 3, 2023

Awesome. First round of review: is there any new thing that gets added here besides said embellishments or should we expect this to be NFC?

What's the answer here?

It's supposed to be NFC! Fixed: https://github.com/llvm/clangir/tree/gh/sitio-couto/1/orig.

Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

[ghstack-poisoned]
@sitio-couto sitio-couto changed the title [CIR][IR] Redefine tablegen CIR StructType with C++ [CIR][IR][NFC] Redefine tablegen CIR StructType with C++ Nov 3, 2023
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

[ghstack-poisoned]
@sitio-couto sitio-couto merged commit 3114fbd into gh/sitio-couto/1/base Nov 3, 2023
sitio-couto added a commit that referenced this pull request Nov 3, 2023
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
@sitio-couto sitio-couto deleted the gh/sitio-couto/1/head branch November 3, 2023 22:35
lanza pushed a commit that referenced this pull request Dec 20, 2023
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
lanza pushed a commit that referenced this pull request Jan 29, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
lanza pushed a commit that referenced this pull request Mar 23, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
eZWALT pushed a commit to eZWALT/clangir that referenced this pull request Mar 24, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: llvm#302
lanza pushed a commit that referenced this pull request Apr 29, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
lanza pushed a commit that referenced this pull request Apr 29, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
eZWALT pushed a commit to eZWALT/clangir that referenced this pull request Apr 29, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: llvm#302
lanza pushed a commit that referenced this pull request Apr 29, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
pysuxing pushed a commit to pysuxing/llvm-project that referenced this pull request Jul 17, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc0a61a4a2ed6e2f20ab0937b1a42bfa9cc
Pull Request resolved: llvm/clangir#302
Hugobros3 pushed a commit to shady-gang/clangir that referenced this pull request Oct 2, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: llvm#302
keryell pushed a commit to keryell/clangir that referenced this pull request Oct 19, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: llvm#302
lanza pushed a commit that referenced this pull request Nov 5, 2024
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
lanza pushed a commit that referenced this pull request Mar 18, 2025
Essentially, this patch redefines the CIR StructType manually instead
of using the autogenerated definition from tablegen. This is the first
step to make StructType mutable, as this feature is not yet supported
by tablegen.

It's mostly a copy of the tablegen definition, with a few notable
differences:

 - A few embellishments are added to make the code more dev-friendly
 - Addition of a CIRTypesDetails.h file to keep custom storage definitions
 - The CIR_AnyCIRType constraint is removed, as it is not used and must
   be defined in C++ to ensure StructType is a part of it.

ghstack-source-id: 5f706dc
Pull Request resolved: #302
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants