[llvm] [Exegesis][RISCV] Add RISCV support for llvm-exegesis (PR #89047)

Keeran Rothenfusser via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 17 08:31:46 PDT 2024


================
@@ -103,7 +103,7 @@ bool ExegesisRISCVTarget::checkOpcodeSupported(
   FeatureBitset RequiredFeatures = RISCV_MC::computeRequiredFeatures(Opcode);
   FeatureBitset MissingFeatures =
       (AvailableFeatures & RequiredFeatures) ^ RequiredFeatures;
-  return MissingFeatures.none();
+  return !(MissingFeatures.none());
----------------
keeranroth wrote:

I think this was right before. Simplifying the previous bit operation:
```
FeatureBitSet MissingFeatures = RequiredFeatures & ~AvailableFeatures;
// MissingFeatures now has bits set which are in RequiredFeatures, but not in available features.
// If MissingFeatures is none, then the required features are a subset of the available features
return MissingFeatures.none();
```

https://github.com/llvm/llvm-project/pull/89047


More information about the llvm-commits mailing list