================
@@ -7920,6 +7923,18 @@ static bool handleFunctionTypeAttr(TypeProcessingState 
&state, ParsedAttr &attr,
   CallingConv CCOld = fn->getCallConv();
   Attr *CCAttr = getCCTypeAttr(S.Context, attr);
 
+  if (attr.getKind() == ParsedAttr::AT_RISCVVLSCC) {
+    // If the riscv_abi_vlen doesn't have any argument, default ABI_VLEN is 
128.
+    unsigned ABIVLen = 128;
+    if (attr.getNumArgs() &&
+        !S.checkUInt32Argument(attr, attr.getArgAsExpr(0), ABIVLen))
+      return false;
+
+    auto EI = unwrapped.get()->getExtInfo().withLog2RISCVABIVLen(
----------------
topperc wrote:

Is `unwrapped.get()` the same as `fn`?

https://github.com/llvm/llvm-project/pull/100346
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to