[llvm-dev] Post definition register alias in tablegen.

Micah Villmow via llvm-dev
Tue, 24 Nov 2015 16:28:54 -0000

I have two registers A and B that are aliases of each other. I have not found a
way to define this in tablegen yet. Would anyone know how?

I've tried:
def A : Register<"%a">;
def B : Register<"%b">;
let Aliases = [A] in {
B;
}
let Aliases = [B] in {
A;
}

I've also tried forward definitions.
def A;
def B : RegisterWithAlias<"%b", A>;
def A: RegisterWithAlias<"%a", B>;


So, is there a way to specify that they are aliases of each other? Or does
setting A as an alias of B also make sure that B is an alias of A?

Thanks,
Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20151124/d5d4e4d7/attachment.html>