<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
I have registers that can hold either integer or floating point values. There are instructions for integer operands, floating operands, and also a "mixed" type operand, ie an operand that is the result of either an integer or floating point operation.<br><br>I see that the RegisterClass has a list of ValueTypes, and I conclude that I can define a register class to use for the mixed operands<b> </b>that has both integer and floating point valuetypes. I would like to do:<br><br>reg:IntRC      = IntegerOp...<br> ~or~<br>reg:FloatRC  = FloatOp ...<br>...<br>consumingMI  regOp:MixedRC<br><br>IntRC = [i32], "reg1,...", FloatRC = [f32], "reg1, ...", MixedRC = [i32, f32], "reg1, ...".<br><br>Does this approach seem fair? What are the consequences in the backend for the different value types for operands?<br><br>/Jonas<br><br>                                           </div></body>
</html>