================
@@ -17,11 +17,702 @@
 
 #include "mlir/ABI/Targets/Test/TestTarget.h"
 #include "clang/CIR/Dialect/IR/CIRDialect.h"
+#include "clang/CIR/MissingFeatures.h"
+#include "llvm/ABI/Types.h"
+#include "llvm/ADT/TypeSwitch.h"
+#include "llvm/Support/MathExtras.h"
 
 using namespace mlir;
 using namespace mlir::abi;
 using namespace cir;
 
+//===----------------------------------------------------------------------===//
+// x86_64 System V classifier bridge
+//
+// Maps CIR types to llvm::abi::Type, runs the LLVM ABI Lowering Library's SysV
+// x86_64 classifier, and converts the result back into the dialect-agnostic
+// mlir::abi::FunctionClassification that CIRABIRewriteContext consumes.
+// isSupportedType says which CIR types the bridge handles, and a signature
+// naming any other fails the pass instead of being misclassified.
+//===----------------------------------------------------------------------===//
----------------
koparasy wrote:

Is this still correct, isn't this the "generic" infra? Should we rename the x86 
part? This comment applies to various places. It is fine if you decide to 
rename later in some other PR.

https://github.com/llvm/llvm-project/pull/234362
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to