llvm / llvm/Polygeist

Use higher level types to represent classes

Open
#239 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
624
Forks
170
PR merge metrics
No merged PRs in 30d

Description

Instead of using `LLVMStructType`, use a higher level Polygeist-specific type to represent classes holding more information (in addition to member), e.g., class name.

This would allow for easier handling in other dialects depending on Polygeist, e.g., conversion to dialect-specific types; without including further modifications in the Polygeist code.

E.g.,

```cpp
namespace ns {
namespace impl {
class A { int m; };
}
class B { A n; };
}
```

could be represented as:

```MLIR

>
```

This would allow a dialect Foo to represent the `B` class as, e.g.:

```MLIR

```

just by reading the namespace-qualified type name.,

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating Polygeist's uses of LLVMStructType and the existing type definitions, then trace how class names and members are represented across dependent dialects. Done means a Polygeist-specific class type preserves the qualified name and member information while allowing other dialects to consume it without further Polygeist changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.