<div dir="ltr">Hi,<div><br></div><div>My question sounds kind of silly, but can we define a physical register for both integer and floating point in LLVM backend?</div><div><br></div><div>In the section "Defining a Register Class" in tutorial "Writing an LLVM Backend", when we define a Register Class, we need to define the regType, which makes sense to me. But if both integer and floating point are 32 bits, why cannot we use a physical register to represent different types of numbers accordingly. </div><div><br></div><div>And what if my backend does not have floating point physical register, but my IR has floating point virtual register?</div><div><br></div><div>Thanks</div><div><br></div><div>Xiangyang </div></div>