Skip to content

Commit 6d2e3c1

Browse files
committed
[CIR] Un-xfail variadic calls
1 parent c6c3e82 commit 6d2e3c1

File tree

7 files changed

+2
-8
lines changed

7 files changed

+2
-8
lines changed

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ ParseResult cir::FuncOp::parse(OpAsmParser &parser, OperationState &state) {
23692369
// Parse the function signature.
23702370
bool isVariadic = false;
23712371
if (function_interface_impl::parseFunctionSignatureWithArguments(
2372-
parser, /*allowVariadic=*/false, arguments, isVariadic, resultTypes,
2372+
parser, /*allowVariadic=*/true, arguments, isVariadic, resultTypes,
23732373
resultAttrs))
23742374
return failure();
23752375

clang/test/CIR/IR/func.cir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: cir-opt %s | FileCheck %s
2-
// XFAIL: *
32

43
!s32i = !cir.int<s, 32>
54
!u8i = !cir.int<u, 8>

clang/test/CIR/IR/invalid.cir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Test attempts to build bogus CIR
22
// RUN: cir-opt %s -verify-diagnostics -split-input-file
3-
// XFAIL: *
43

54
!u32i = !cir.int<u, 32>
65

clang/test/CIR/Lowering/call.cir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: cir-opt %s -cir-to-llvm -o - | FileCheck %s -check-prefix=MLIR
22
// RUN: cir-translate %s -cir-to-llvmir --disable-cc-lowering | FileCheck %s -check-prefix=LLVM
3-
// XFAIL: *
43

54
!s32i = !cir.int<s, 32>
65
module {
@@ -116,7 +115,7 @@ module {
116115
// LLVM: %{{.+}} = call i32 @add(i32 0, i32 1) #[[#pure:]]
117116
// LLVM: %{{.+}} = call i32 @add(i32 0, i32 1) #[[#const:]]
118117
// LLVM: }
119-
// LLVM: attributes #[[#pure]] = { nounwind willreturn memory(read) }
118+
// LLVM: attributes #[[#pure]] = { nounwind willreturn memory(read, errnomem: none) }
120119
// LLVM: attributes #[[#const]] = { nounwind willreturn memory(none) }
121120

122121
} // end module

clang/test/CIR/Lowering/func.cir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: cir-opt %s -cir-to-llvm -o %t.mlir
22
// RUN: FileCheck %s -check-prefix=MLIR --input-file=%t.mlir
3-
// XFAIL: *
43

54
!s32i = !cir.int<s, 32>
65
module {

clang/test/CIR/Lowering/hello.cir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: cir-opt %s -cir-to-llvm -o %t.mlir
22
// RUN: FileCheck --input-file=%t.mlir %s
3-
// XFAIL: *
43

54
!s32i = !cir.int<s, 32>
65
!s8i = !cir.int<s, 8>

clang/test/CIR/Lowering/variadics.cir

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: cir-opt %s -cir-to-llvm -o %t.cir
22
// RUN: FileCheck --input-file=%t.cir %s -check-prefix=MLIR
3-
// XFAIL: *
43

54
!s32i = !cir.int<s, 32>
65
!u32i = !cir.int<u, 32>

0 commit comments

Comments
 (0)