[clang] [CIR] Upstream CIR method attribute handling (PR #174640)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 6 12:37:01 PST 2026
================
@@ -133,4 +137,48 @@ mlir::Operation *LowerItaniumCXXABI::lowerGetRuntimeMember(
cir::CastKind::bitcast, memberBytesPtr);
}
+mlir::TypedAttr LowerItaniumCXXABI::lowerMethodConstant(
+ cir::MethodAttr attr, const mlir::DataLayout &layout,
+ const mlir::TypeConverter &typeConverter) const {
+ cir::IntType ptrdiffCIRTy = getPtrDiffCIRTy(lm);
+ auto loweredMethodTy = mlir::cast<cir::RecordType>(
----------------
erichkeane wrote:
Why are we doing `lowerMethodType` and getting a `RecordType` back? Is that weird?
https://github.com/llvm/llvm-project/pull/174640
More information about the cfe-commits
mailing list