Skip to content

Commit cc22a9e

Browse files
Fix clang format
1 parent 282cc41 commit cc22a9e

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Target.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Target::Processor get_amd_processor(unsigned family, unsigned model, bool have_s
155155
}
156156
break;
157157
case 0x19: // AMD Family 19h
158-
if (
158+
if (
159159
// Zen 3
160160
(0x50 <= model && model <= 0x5F) || // Cezanne
161161
(0x40 <= model && model <= 0x4F) || // Rembrandt
@@ -165,17 +165,17 @@ Target::Processor get_amd_processor(unsigned family, unsigned model, bool have_s
165165
) {
166166
return Target::Processor::ZnVer3;
167167
} else if (
168-
// Zen 4
169-
(0xA0 <= model && model <= 0xAF) || // Genoa, Dragon Range
168+
// Zen 4
169+
(0xA0 <= model && model <= 0xAF) || // Genoa, Dragon Range
170170
(0x78 <= model && model <= 0x7F) || // Phoenix 2, Hawk Point 2 (Zen 4c)
171171
(0x70 <= model && model <= 0x77) || // Phoenix, Hawk Point 1
172172
(0x60 <= model && model <= 0x6F) || // Raphael
173173
(0x10 <= model && model <= 0x1F) // Storm Peak
174-
) {
174+
) {
175175
return Target::Processor::ZnVer4;
176176
}
177177
break;
178-
case 0x1a: // AMD Family 1Ah
178+
case 0x1a: // AMD Family 1Ah
179179
return Target::Processor::ZnVer5; // Zen5
180180
default:
181181
break; // Unknown AMD CPU.

src/runtime/HalideRuntime.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1360,13 +1360,13 @@ typedef enum halide_target_feature_t {
13601360
halide_target_feature_no_asserts, ///< Disable all runtime checks, for slightly tighter code.
13611361
halide_target_feature_no_bounds_query, ///< Disable the bounds querying functionality.
13621362

1363-
halide_target_feature_sse41, ///< Use SSE 4.1 and earlier instructions. Only relevant on x86.
1364-
halide_target_feature_avx, ///< Use AVX 1 instructions. Only relevant on x86.
1365-
halide_target_feature_avx2, ///< Use AVX 2 instructions. Only relevant on x86.
1366-
halide_target_feature_avxvnni,///< Enable the AVX-VNNI features supported by AVX2 instructions. Supports 256-bit VNNI instructions without EVEX encoding.
1367-
halide_target_feature_fma, ///< Enable x86 FMA instruction
1368-
halide_target_feature_fma4, ///< Enable x86 (AMD) FMA4 instruction set
1369-
halide_target_feature_f16c, ///< Enable x86 16-bit float support
1363+
halide_target_feature_sse41, ///< Use SSE 4.1 and earlier instructions. Only relevant on x86.
1364+
halide_target_feature_avx, ///< Use AVX 1 instructions. Only relevant on x86.
1365+
halide_target_feature_avx2, ///< Use AVX 2 instructions. Only relevant on x86.
1366+
halide_target_feature_avxvnni, ///< Enable the AVX-VNNI features supported by AVX2 instructions. Supports 256-bit VNNI instructions without EVEX encoding.
1367+
halide_target_feature_fma, ///< Enable x86 FMA instruction
1368+
halide_target_feature_fma4, ///< Enable x86 (AMD) FMA4 instruction set
1369+
halide_target_feature_f16c, ///< Enable x86 16-bit float support
13701370

13711371
halide_target_feature_armv7s, ///< Generate code for ARMv7s. Only relevant for 32-bit ARM.
13721372
halide_target_feature_no_neon, ///< Avoid using NEON instructions. Only relevant for 32-bit ARM.

0 commit comments

Comments
 (0)