[llvm] [RISCV][NFC] Prepare for Short Forward Branch of branches with immediates (PR #182456)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 16:04:06 PST 2026
================
@@ -1295,6 +1295,50 @@ RISCVCC::CondCode RISCVCC::getInverseBranchCondition(RISCVCC::CondCode CC) {
}
}
+// Return inverse branch
+unsigned RISCVCC::getInverseBranchOpcode(unsigned BCC) {
+ switch (BCC) {
+ default:
+ llvm_unreachable("Unexpected condition code!");
----------------
topperc wrote:
condition code -> branch opcode
https://github.com/llvm/llvm-project/pull/182456
More information about the llvm-commits
mailing list