Skip to content

Commit eefe2d7

Browse files
committed
format code
1 parent 6e7baa8 commit eefe2d7

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,13 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
350350
}
351351

352352
cir::StoreOp createStore(mlir::Location loc, mlir::Value val, mlir::Value dst,
353-
bool _volatile = false,
354-
uint64_t alignment = {},
353+
bool _volatile = false, uint64_t alignment = {},
355354
cir::MemOrderAttr order = {}) {
356355
if (mlir::cast<cir::PointerType>(dst.getType()).getPointee() !=
357356
val.getType())
358357
dst = createPtrBitcast(dst, val.getType());
359358
const mlir::IntegerAttr alignmentAttr = mlir::IntegerAttr::get(
360-
mlir::IntegerType::get(dst.getContext(), 64), alignment);
359+
mlir::IntegerType::get(dst.getContext(), 64), alignment);
361360
return create<cir::StoreOp>(loc, val, dst, _volatile, alignmentAttr, order,
362361
/*tbaa=*/cir::TBAAAttr{});
363362
}

clang/lib/CIR/CodeGen/CIRGenBuilder.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -897,13 +897,13 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
897897
bool _volatile = false,
898898
cir::MemOrderAttr order = {}) {
899899
return createAlignedStore(loc, val, dst.getPointer(), dst.getAlignment(),
900-
_volatile, order);
900+
_volatile, order);
901901
}
902902

903-
cir::StoreOp
904-
createAlignedStore(mlir::Location loc, mlir::Value val, mlir::Value dst,
905-
clang::CharUnits align,
906-
bool _volatile = false, cir::MemOrderAttr order = {}) {
903+
cir::StoreOp createAlignedStore(mlir::Location loc, mlir::Value val,
904+
mlir::Value dst, clang::CharUnits align,
905+
bool _volatile = false,
906+
cir::MemOrderAttr order = {}) {
907907
llvm::MaybeAlign mayAlign = align.getAsAlign();
908908
uint64_t alignment = mayAlign ? mayAlign->value() : 0;
909909
return CIRBaseBuilderTy::createStore(loc, val, dst, _volatile, alignment,

0 commit comments

Comments
 (0)