Skip to content

[SuperFileCheck] Consider regex helpers #82199

Description

@TIHan

At the moment in SuperFileCheck, we use FileCheck's syntax for matching registers using regexes:

// ARM64: cmp {{x[0-9]+}}, {{x[0-9]+}}
// X64: mov [[REG0:[a-z0-9]+]], [[REG1:[a-z0-9]+]]

This does hurt readability. We should consider creating built-in helpers at the SuperFileCheck level that expand common regexes to make this easier to write and read. An example of what this might look like:

// ARM64: cmp {{$(REGISTER)}}, {{$(REGISTER)}}
// X64: mov [[REG0:$(REGISTER)]], [[REG1:$(REGISTER)]]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions