[compiler-rt] [llvm] [compiler-rt][builtins] A few fixes cpu_model files (PR #198957)
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed May 20 20:14:40 PDT 2026
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/198957
>From fc0ec50ea79d36bc2938495d7f40b490697ae38a Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Wed, 20 May 2026 19:53:48 -0400
Subject: [PATCH] [compiler-rt][builtins] A few fixes cpu_model files
- Fix typo in include guard with the word features
- Correct header in cpu_model.h header file and include guard after
the file has been renamed
---
compiler-rt/lib/builtins/cpu_model/AArch64CPUFeatures.inc | 4 ++--
compiler-rt/lib/builtins/cpu_model/cpu_model.h | 6 +++---
llvm/include/llvm/TargetParser/AArch64CPUFeatures.inc | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/compiler-rt/lib/builtins/cpu_model/AArch64CPUFeatures.inc b/compiler-rt/lib/builtins/cpu_model/AArch64CPUFeatures.inc
index 46a45a1e91f65..87a602aa5b271 100644
--- a/compiler-rt/lib/builtins/cpu_model/AArch64CPUFeatures.inc
+++ b/compiler-rt/lib/builtins/cpu_model/AArch64CPUFeatures.inc
@@ -17,8 +17,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef AARCH64_CPU_FEATURS_INC_H
-#define AARCH64_CPU_FEATURS_INC_H
+#ifndef AARCH64_CPU_FEATURES_INC_H
+#define AARCH64_CPU_FEATURES_INC_H
// Function Multi Versioning CPU features.
enum CPUFeatures {
diff --git a/compiler-rt/lib/builtins/cpu_model/cpu_model.h b/compiler-rt/lib/builtins/cpu_model/cpu_model.h
index 3bc4e63c4f25a..fe31dc50dc56b 100644
--- a/compiler-rt/lib/builtins/cpu_model/cpu_model.h
+++ b/compiler-rt/lib/builtins/cpu_model/cpu_model.h
@@ -1,4 +1,4 @@
-//===-- cpu_model_common.c - Utilities for cpu model detection ----*- C -*-===//
+//===-- cpu_model/cpu_model.h - Utilities for cpu model detection -*- C -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -10,8 +10,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef COMPILER_RT_LIB_BUILTINS_CPU_MODEL_COMMON_H
-#define COMPILER_RT_LIB_BUILTINS_CPU_MODEL_COMMON_H
+#ifndef COMPILER_RT_LIB_BUILTINS_CPU_MODEL_CPU_MODEL_H
+#define COMPILER_RT_LIB_BUILTINS_CPU_MODEL_CPU_MODEL_H
#define bool int
#define true 1
diff --git a/llvm/include/llvm/TargetParser/AArch64CPUFeatures.inc b/llvm/include/llvm/TargetParser/AArch64CPUFeatures.inc
index 46a45a1e91f65..87a602aa5b271 100644
--- a/llvm/include/llvm/TargetParser/AArch64CPUFeatures.inc
+++ b/llvm/include/llvm/TargetParser/AArch64CPUFeatures.inc
@@ -17,8 +17,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef AARCH64_CPU_FEATURS_INC_H
-#define AARCH64_CPU_FEATURS_INC_H
+#ifndef AARCH64_CPU_FEATURES_INC_H
+#define AARCH64_CPU_FEATURES_INC_H
// Function Multi Versioning CPU features.
enum CPUFeatures {
More information about the llvm-commits
mailing list