Skip to content

Commit 30e6801

Browse files
Formatting
1 parent fd266d4 commit 30e6801

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,11 +569,10 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
569569
return getUndefRValue(e->getType());
570570
}
571571

572-
static std::optional<mlir::Value> emitTargetArchBuiltinExpr(CIRGenFunction *cgf,
573-
unsigned builtinID,
574-
const CallExpr *e,
575-
ReturnValueSlot &returnValue,
576-
llvm::Triple::ArchType arch) {
572+
static std::optional<mlir::Value>
573+
emitTargetArchBuiltinExpr(CIRGenFunction *cgf, unsigned builtinID,
574+
const CallExpr *e, ReturnValueSlot &returnValue,
575+
llvm::Triple::ArchType arch) {
577576
// When compiling in HipStdPar mode we have to be conservative in rejecting
578577
// target specific features in the FE, and defer the possible error to the
579578
// AcceleratorCodeSelection pass, wherein iff an unsupported target builtin is

clang/lib/CIR/CodeGen/CIRGenBuiltinX86.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ static mlir::Value emitPrefetch(CIRGenFunction &cgf, unsigned builtinID,
4848
bool isWrite{};
4949
int locality{};
5050

51-
assert(builtinID == X86::BI_mm_prefetch ||
52-
builtinID == X86::BI_m_prefetchw ||
51+
assert(builtinID == X86::BI_mm_prefetch || builtinID == X86::BI_m_prefetchw ||
5352
builtinID == X86::BI_m_prefetch && "Expected prefetch builtin");
5453

5554
if (builtinID == X86::BI_mm_prefetch) {
@@ -65,8 +64,8 @@ static mlir::Value emitPrefetch(CIRGenFunction &cgf, unsigned builtinID,
6564
return {};
6665
}
6766

68-
std::optional<mlir::Value> CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID,
69-
const CallExpr *e) {
67+
std::optional<mlir::Value>
68+
CIRGenFunction::emitX86BuiltinExpr(unsigned builtinID, const CallExpr *e) {
7069
if (builtinID == Builtin::BI__builtin_cpu_is) {
7170
cgm.errorNYI(e->getSourceRange(), "__builtin_cpu_is");
7271
return {};

clang/lib/CIR/CodeGen/CIRGenFunction.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,9 +1746,9 @@ class CIRGenFunction : public CIRGenTypeCache {
17461746
bool buildingTopLevelCase);
17471747
mlir::LogicalResult emitSwitchStmt(const clang::SwitchStmt &s);
17481748

1749-
std::optional<mlir::Value> emitTargetBuiltinExpr(unsigned builtinID,
1750-
const clang::CallExpr *e,
1751-
ReturnValueSlot &returnValue);
1749+
std::optional<mlir::Value>
1750+
emitTargetBuiltinExpr(unsigned builtinID, const clang::CallExpr *e,
1751+
ReturnValueSlot &returnValue);
17521752

17531753
/// Given a value and its clang type, returns the value casted to its memory
17541754
/// representation.
@@ -1788,7 +1788,8 @@ class CIRGenFunction : public CIRGenTypeCache {
17881788

17891789
mlir::LogicalResult emitWhileStmt(const clang::WhileStmt &s);
17901790

1791-
std::optional<mlir::Value> emitX86BuiltinExpr(unsigned builtinID, const CallExpr *e);
1791+
std::optional<mlir::Value> emitX86BuiltinExpr(unsigned builtinID,
1792+
const CallExpr *e);
17921793

17931794
/// Given an assignment `*lhs = rhs`, emit a test that checks if \p rhs is
17941795
/// nonnull, if 1\p LHS is marked _Nonnull.

0 commit comments

Comments
 (0)