@@ -1108,8 +1108,7 @@ bool Attributor::getAttrsFromAssumes(const IRPosition &IRP,
1108
1108
1109
1109
template <typename DescTy>
1110
1110
ChangeStatus
1111
- Attributor::updateAttrMap (const IRPosition &IRP,
1112
- const ArrayRef<DescTy> &AttrDescs,
1111
+ Attributor::updateAttrMap (const IRPosition &IRP, ArrayRef<DescTy> AttrDescs,
1113
1112
function_ref<bool (const DescTy &, AttributeSet,
1114
1113
AttributeMask &, AttrBuilder &)>
1115
1114
CB) {
@@ -1216,9 +1215,8 @@ void Attributor::getAttrs(const IRPosition &IRP,
1216
1215
getAttrsFromAssumes (IRP, AK, Attrs);
1217
1216
}
1218
1217
1219
- ChangeStatus
1220
- Attributor::removeAttrs (const IRPosition &IRP,
1221
- const ArrayRef<Attribute::AttrKind> &AttrKinds) {
1218
+ ChangeStatus Attributor::removeAttrs (const IRPosition &IRP,
1219
+ ArrayRef<Attribute::AttrKind> AttrKinds) {
1222
1220
auto RemoveAttrCB = [&](const Attribute::AttrKind &Kind, AttributeSet AttrSet,
1223
1221
AttributeMask &AM, AttrBuilder &) {
1224
1222
if (!AttrSet.hasAttribute (Kind))
@@ -1243,7 +1241,7 @@ ChangeStatus Attributor::removeAttrs(const IRPosition &IRP,
1243
1241
}
1244
1242
1245
1243
ChangeStatus Attributor::manifestAttrs (const IRPosition &IRP,
1246
- const ArrayRef<Attribute> & Attrs,
1244
+ ArrayRef<Attribute> Attrs,
1247
1245
bool ForceReplace) {
1248
1246
LLVMContext &Ctx = IRP.getAnchorValue ().getContext ();
1249
1247
auto AddAttrCB = [&](const Attribute &Attr, AttributeSet AttrSet,
@@ -2006,7 +2004,7 @@ bool Attributor::checkForAllReturnedValues(function_ref<bool(Value &)> Pred,
2006
2004
static bool checkForAllInstructionsImpl (
2007
2005
Attributor *A, InformationCache::OpcodeInstMapTy &OpcodeInstMap,
2008
2006
function_ref<bool (Instruction &)> Pred, const AbstractAttribute *QueryingAA,
2009
- const AAIsDead *LivenessAA, const ArrayRef<unsigned> & Opcodes,
2007
+ const AAIsDead *LivenessAA, ArrayRef<unsigned> Opcodes,
2010
2008
bool &UsedAssumedInformation, bool CheckBBLivenessOnly = false,
2011
2009
bool CheckPotentiallyDead = false) {
2012
2010
for (unsigned Opcode : Opcodes) {
@@ -2036,7 +2034,7 @@ static bool checkForAllInstructionsImpl(
2036
2034
bool Attributor::checkForAllInstructions (function_ref<bool (Instruction &)> Pred,
2037
2035
const Function *Fn,
2038
2036
const AbstractAttribute *QueryingAA,
2039
- const ArrayRef<unsigned> & Opcodes,
2037
+ ArrayRef<unsigned> Opcodes,
2040
2038
bool &UsedAssumedInformation,
2041
2039
bool CheckBBLivenessOnly,
2042
2040
bool CheckPotentiallyDead) {
@@ -2061,7 +2059,7 @@ bool Attributor::checkForAllInstructions(function_ref<bool(Instruction &)> Pred,
2061
2059
2062
2060
bool Attributor::checkForAllInstructions (function_ref<bool (Instruction &)> Pred,
2063
2061
const AbstractAttribute &QueryingAA,
2064
- const ArrayRef<unsigned> & Opcodes,
2062
+ ArrayRef<unsigned> Opcodes,
2065
2063
bool &UsedAssumedInformation,
2066
2064
bool CheckBBLivenessOnly,
2067
2065
bool CheckPotentiallyDead) {
0 commit comments