brintos

brintos / llvm-project-archived public Read only

0
0
Text · 361 B · 4f25184 Raw
14 lines · plain
1// RUN: mlir-opt -convert-to-emitc %s | FileCheck %s2 3// CHECK-LABEL emitc.func @int(%[[ARG:.*]]: i32) -> i324func.func @int(%arg0: i32) -> i32 {5    // CHECK: return6    return %arg0 : i327}8 9// CHECK-LABEL emitc.func @index(%[[ARG:.*]]: !emitc.size_t) -> !emitc.size_t10func.func @index(%arg0: index) -> index {11    // CHECK: return12    return %arg0 : index13}14