Lines Matching refs:CPP
1 // RUN: mlir-translate -mlir-to-cpp %s | FileCheck %s -check-prefix=CPP-DEFAULT
2 // RUN: mlir-translate -mlir-to-cpp -declare-variables-at-top %s | FileCheck %s -check-prefix=CPP-D…
13 // CPP-DEFAULT: void emitc_constant() {
14 // CPP-DEFAULT-NEXT: int32_t [[V0:[^ ]*]];
15 // CPP-DEFAULT-NEXT: int32_t [[V1:[^ ]*]] = 42;
16 // CPP-DEFAULT-NEXT: int32_t [[V2:[^ ]*]] = -1;
17 // CPP-DEFAULT-NEXT: int8_t [[V3:[^ ]*]] = -1;
18 // CPP-DEFAULT-NEXT: uint8_t [[V4:[^ ]*]] = 255;
19 // CPP-DEFAULT-NEXT: char [[V5:[^ ]*]] = CHAR_MIN;
21 // CPP-DECLTOP: void emitc_constant() {
22 // CPP-DECLTOP-NEXT: int32_t [[V0:[^ ]*]];
23 // CPP-DECLTOP-NEXT: int32_t [[V1:[^ ]*]];
24 // CPP-DECLTOP-NEXT: int32_t [[V2:[^ ]*]];
25 // CPP-DECLTOP-NEXT: int8_t [[V3:[^ ]*]];
26 // CPP-DECLTOP-NEXT: uint8_t [[V4:[^ ]*]];
27 // CPP-DECLTOP-NEXT: char [[V5:[^ ]*]];
28 // CPP-DECLTOP-NEXT: ;
29 // CPP-DECLTOP-NEXT: [[V1]] = 42;
30 // CPP-DECLTOP-NEXT: [[V2]] = -1;
31 // CPP-DECLTOP-NEXT: [[V3]] = -1;
32 // CPP-DECLTOP-NEXT: [[V4]] = 255;
33 // CPP-DECLTOP-NEXT: [[V5]] = CHAR_MIN;