[llvm] [llvm-exegesis] Add AArch64 operand initializers, SetRegTo (PR #169912)
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 10:00:30 PST 2025
================
@@ -106,6 +149,110 @@ static MCInst loadFPImmediate(MCRegister Reg, unsigned RegBitWidth,
return Instructions;
}
+// Generates instructions to load an immediate value into a DD Reg
+static std::vector<MCInst>
+loadDDRegImmediate(MCRegister Reg, unsigned RegBitWidth, const APInt &Value) {
----------------
john-brawn-arm wrote:
There's a lot of repetition in these functions. It would be better to have a single function that takes the register type and number of registers, and generates a list of loads of the given type and number.
https://github.com/llvm/llvm-project/pull/169912
More information about the llvm-commits
mailing list