Skip to content

Commit 11ba318

Browse files
committed
clang-foramt
1 parent c30d948 commit 11ba318

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ void RISCVAsmPrinter::emitMachineConstantPoolValue(
10021002
MCSym = GetExternalSymbolSymbol(Sym);
10031003
}
10041004

1005-
const MCExpr *Expr = MCSymbolRefExpr::create(
1006-
MCSym, MCSymbolRefExpr::VK_None, OutContext);
1005+
const MCExpr *Expr =
1006+
MCSymbolRefExpr::create(MCSym, MCSymbolRefExpr::VK_None, OutContext);
10071007
uint64_t Size = getDataLayout().getTypeAllocSize(RCPV->getType());
10081008
OutStreamer->emitValue(Expr, Size);
10091009
}

llvm/lib/Target/RISCV/RISCVConstantPoolValue.cpp

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
using namespace llvm;
2323

24-
RISCVConstantPoolValue::RISCVConstantPoolValue(
25-
LLVMContext &C, RISCVCP::RISCVCPKind Kind)
24+
RISCVConstantPoolValue::RISCVConstantPoolValue(LLVMContext &C,
25+
RISCVCP::RISCVCPKind Kind)
2626
: MachineConstantPoolValue((Type *)Type::getInt64Ty(C)), Kind(Kind) {}
2727

28-
RISCVConstantPoolValue::RISCVConstantPoolValue(
29-
Type *Ty, RISCVCP::RISCVCPKind Kind)
28+
RISCVConstantPoolValue::RISCVConstantPoolValue(Type *Ty,
29+
RISCVCP::RISCVCPKind Kind)
3030
: MachineConstantPoolValue(Ty), Kind(Kind) {}
3131

3232
int RISCVConstantPoolValue::getExistingMachineCPValue(MachineConstantPool *CP,
@@ -73,12 +73,11 @@ const BlockAddress *RISCVConstantPoolConstant::getBlockAddress() const {
7373
return dyn_cast_or_null<BlockAddress>(CVal);
7474
}
7575

76-
RISCVConstantPoolSymbol::RISCVConstantPoolSymbol(
77-
LLVMContext &C, StringRef s)
76+
RISCVConstantPoolSymbol::RISCVConstantPoolSymbol(LLVMContext &C, StringRef s)
7877
: RISCVConstantPoolValue(C, RISCVCP::ExtSymbol), S(s) {}
7978

80-
RISCVConstantPoolSymbol *
81-
RISCVConstantPoolSymbol::Create(LLVMContext &C, StringRef s) {
79+
RISCVConstantPoolSymbol *RISCVConstantPoolSymbol::Create(LLVMContext &C,
80+
StringRef s) {
8281
return new RISCVConstantPoolSymbol(C, s);
8382
}
8483

@@ -91,6 +90,4 @@ void RISCVConstantPoolSymbol::addSelectionDAGCSEId(FoldingSetNodeID &ID) {
9190
ID.AddString(S);
9291
}
9392

94-
void RISCVConstantPoolSymbol::print(raw_ostream &O) const {
95-
O << S;
96-
}
93+
void RISCVConstantPoolSymbol::print(raw_ostream &O) const { O << S; }

llvm/lib/Target/RISCV/RISCVConstantPoolValue.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ class RISCVConstantPoolSymbol : public RISCVConstantPoolValue {
115115

116116
void print(raw_ostream &O) const override;
117117

118-
bool equals(const RISCVConstantPoolSymbol *A) const {
119-
return S == A->S;
120-
}
118+
bool equals(const RISCVConstantPoolSymbol *A) const { return S == A->S; }
121119
static bool classof(const RISCVConstantPoolValue *RCPV) {
122120
return RCPV->isExtSymbol();
123121
}

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6456,8 +6456,8 @@ static SDValue getLargeAddr(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG) {
64566456
Ty, DL, DAG.getEntryNode(), LC,
64576457
MachinePointerInfo::getConstantPool(DAG.getMachineFunction()));
64586458
} else if (ExternalSymbolSDNode *S = dyn_cast<ExternalSymbolSDNode>(N)) {
6459-
RISCVConstantPoolSymbol *CPV = RISCVConstantPoolSymbol::Create(
6460-
*DAG.getContext(), S->getSymbol());
6459+
RISCVConstantPoolSymbol *CPV =
6460+
RISCVConstantPoolSymbol::Create(*DAG.getContext(), S->getSymbol());
64616461
SDValue CPAddr = DAG.getTargetConstantPool(CPV, Ty, Align(8));
64626462
SDValue LC = DAG.getNode(RISCVISD::LLA, DL, Ty, CPAddr);
64636463
return DAG.getLoad(

0 commit comments

Comments
 (0)