@@ -3379,7 +3379,8 @@ void SelectionDAGBuilder::visitInvoke(const InvokeInst &I) {
3379
3379
// / intrinsics such as amdgcn.kill.
3380
3380
// / - they should be called (no "dontcall-" attributes)
3381
3381
// / - 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())
3383
3384
void SelectionDAGBuilder::visitCallBrIntrinsic (const CallBrInst &I) {
3384
3385
auto [HasChain, OnlyLoad] = getTargetIntrinsicCallProperties (I);
3385
3386
@@ -5245,7 +5246,8 @@ void SelectionDAGBuilder::visitAtomicStore(const StoreInst &I) {
5245
5246
// / Ignore the callsite's attributes. A specific call site may be marked with
5246
5247
// / readnone, but the lowering code will expect the chain based on the
5247
5248
// / definition.
5248
- std::pair<bool , bool > SelectionDAGBuilder::getTargetIntrinsicCallProperties (const CallBase& I) {
5249
+ std::pair<bool , bool >
5250
+ SelectionDAGBuilder::getTargetIntrinsicCallProperties (const CallBase &I) {
5249
5251
const Function *F = I.getCalledFunction ();
5250
5252
bool HasChain = !F->doesNotAccessMemory ();
5251
5253
bool OnlyLoad =
@@ -5322,11 +5324,11 @@ SDVTList SelectionDAGBuilder::getTargetIntrinsicVTList(const CallBase &I,
5322
5324
return DAG.getVTList (ValueVTs);
5323
5325
}
5324
5326
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) {
5330
5332
SDValue Result;
5331
5333
5332
5334
if (!HasChain) {
@@ -5363,8 +5365,7 @@ SDValue SelectionDAGBuilder::handleTargetIntrinsicRet(const CallBase &I,
5363
5365
5364
5366
// Insert `assertalign` node if there's an alignment.
5365
5367
if (InsertAssertAlign && Alignment) {
5366
- Result =
5367
- DAG.getAssertAlign (getCurSDLoc (), Result, Alignment.valueOrOne ());
5368
+ Result = DAG.getAssertAlign (getCurSDLoc (), Result, Alignment.valueOrOne ());
5368
5369
}
5369
5370
5370
5371
return Result;
@@ -5379,9 +5380,8 @@ void SelectionDAGBuilder::visitTargetIntrinsic(const CallInst &I,
5379
5380
// Info is set by getTgtMemIntrinsic
5380
5381
TargetLowering::IntrinsicInfo Info;
5381
5382
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);
5385
5385
5386
5386
SmallVector<SDValue, 8 > Ops = getTargetIntrinsicOperands (
5387
5387
I, HasChain, OnlyLoad, IsTgtMemIntrinsic ? &Info : nullptr );
0 commit comments