Skip to content

Commit 8273583

Browse files
committed
fix formatting
1 parent f32c1db commit 8273583

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ class IRTranslator : public MachineFunctionPass {
317317
bool translateInvoke(const User &U, MachineIRBuilder &MIRBuilder);
318318

319319
bool translateCallBr(const User &U, MachineIRBuilder &MIRBuilder);
320-
bool translateCallBrIntrinsic(const CallBrInst &I, MachineIRBuilder &MIRBuilder);
320+
bool translateCallBrIntrinsic(const CallBrInst &I,
321+
MachineIRBuilder &MIRBuilder);
321322

322323
bool translateLandingPad(const User &U, MachineIRBuilder &MIRBuilder);
323324

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3379,7 +3379,8 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
33793379
/// intrinsics such as amdgcn.kill.
33803380
/// - they should be called (no "dontcall-" attributes)
33813381
/// - they do not touch memory on the target (= !TLI.getTgtMemIntrinsic())
3382-
/// - they do not need custom argument handling (no TLI.CollectTargetIntrinsicOperands())
3382+
/// - they do not need custom argument handling (no
3383+
/// TLI.CollectTargetIntrinsicOperands())
33833384
void SelectionDAGBuilder::visitCallBrIntrinsic(const CallBrInst &I) {
33843385
auto [HasChain, OnlyLoad] = getTargetIntrinsicCallProperties(I);
33853386

@@ -5245,7 +5246,8 @@ void SelectionDAGBuilder::visitAtomicStore(const StoreInst &I) {
52455246
/// Ignore the callsite's attributes. A specific call site may be marked with
52465247
/// readnone, but the lowering code will expect the chain based on the
52475248
/// definition.
5248-
std::pair<bool, bool> SelectionDAGBuilder::getTargetIntrinsicCallProperties(const CallBase& I) {
5249+
std::pair<bool, bool>
5250+
SelectionDAGBuilder::getTargetIntrinsicCallProperties(const CallBase &I) {
52495251
const Function *F = I.getCalledFunction();
52505252
bool HasChain = !F->doesNotAccessMemory();
52515253
bool OnlyLoad =
@@ -5322,11 +5324,11 @@ SDVTList SelectionDAGBuilder::getTargetIntrinsicVTList(const CallBase &I,
53225324
return DAG.getVTList(ValueVTs);
53235325
}
53245326

5325-
/// Get an INTRINSIC node for a target intrinsic which does not touch touch memory.
5326-
SDValue
5327-
SelectionDAGBuilder::getTargetNonMemIntrinsicNode(const CallBase &I, bool HasChain,
5328-
SmallVector<SDValue, 8> &Ops,
5329-
SDVTList &VTs) {
5327+
/// Get an INTRINSIC node for a target intrinsic which does not touch touch
5328+
/// memory.
5329+
SDValue SelectionDAGBuilder::getTargetNonMemIntrinsicNode(
5330+
const CallBase &I, bool HasChain, SmallVector<SDValue, 8> &Ops,
5331+
SDVTList &VTs) {
53305332
SDValue Result;
53315333

53325334
if (!HasChain) {
@@ -5363,8 +5365,7 @@ SDValue SelectionDAGBuilder::handleTargetIntrinsicRet(const CallBase &I,
53635365

53645366
// Insert `assertalign` node if there's an alignment.
53655367
if (InsertAssertAlign && Alignment) {
5366-
Result =
5367-
DAG.getAssertAlign(getCurSDLoc(), Result, Alignment.valueOrOne());
5368+
Result = DAG.getAssertAlign(getCurSDLoc(), Result, Alignment.valueOrOne());
53685369
}
53695370

53705371
return Result;
@@ -5379,9 +5380,8 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
53795380
// Info is set by getTgtMemIntrinsic
53805381
TargetLowering::IntrinsicInfo Info;
53815382
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
5382-
bool IsTgtMemIntrinsic = TLI.getTgtMemIntrinsic(Info, I,
5383-
DAG.getMachineFunction(),
5384-
Intrinsic);
5383+
bool IsTgtMemIntrinsic =
5384+
TLI.getTgtMemIntrinsic(Info, I, DAG.getMachineFunction(), Intrinsic);
53855385

53865386
SmallVector<SDValue, 8> Ops = getTargetIntrinsicOperands(
53875387
I, HasChain, OnlyLoad, IsTgtMemIntrinsic ? &Info : nullptr);

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,13 +712,14 @@ class SelectionDAGBuilder {
712712
SDValue lowerEndEH(SDValue Chain, const InvokeInst *II,
713713
const BasicBlock *EHPadBB, MCSymbol *BeginLabel);
714714

715-
std::pair<bool, bool> getTargetIntrinsicCallProperties(const CallBase& I);
715+
std::pair<bool, bool> getTargetIntrinsicCallProperties(const CallBase &I);
716716
SmallVector<SDValue, 8> getTargetIntrinsicOperands(
717717
const CallBase &I, bool HasChain, bool OnlyLoad,
718718
TargetLowering::IntrinsicInfo *TgtMemIntrinsicInfo = nullptr);
719719
SDVTList getTargetIntrinsicVTList(const CallBase &I, bool HasChain);
720720
SDValue getTargetNonMemIntrinsicNode(const CallBase &I, bool HasChain,
721-
SmallVector<SDValue, 8> &Ops, SDVTList &VTs);
721+
SmallVector<SDValue, 8> &Ops,
722+
SDVTList &VTs);
722723
SDValue handleTargetIntrinsicRet(const CallBase &I, bool HasChain,
723724
bool OnlyLoad, SDValue Result);
724725
};

llvm/lib/IR/Verifier.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3274,8 +3274,10 @@ void Verifier::visitIndirectBrInst(IndirectBrInst &BI) {
32743274

32753275
void Verifier::visitCallBrInst(CallBrInst &CBI) {
32763276
if (!CBI.isInlineAsm()) {
3277-
Check(CBI.getCalledFunction(), "Callbr: indirect function / invalid signature");
3278-
Check(!CBI.hasOperandBundles(), "Callbr currently doesn't support operand bundles");
3277+
Check(CBI.getCalledFunction(),
3278+
"Callbr: indirect function / invalid signature");
3279+
Check(!CBI.hasOperandBundles(),
3280+
"Callbr currently doesn't support operand bundles");
32793281

32803282
switch (CBI.getIntrinsicID()) {
32813283
case Intrinsic::amdgcn_kill: {

0 commit comments

Comments
 (0)