@@ -108,7 +108,7 @@ struct SimpleValue {
108108 // of instruction handled below (UnaryOperator, etc.).
109109 if (CallInst *CI = dyn_cast<CallInst>(Inst)) {
110110 if (Function *F = CI->getCalledFunction ()) {
111- switch ((Intrinsic::ID) F->getIntrinsicID ()) {
111+ switch (F->getIntrinsicID ()) {
112112 case Intrinsic::experimental_constrained_fadd:
113113 case Intrinsic::experimental_constrained_fsub:
114114 case Intrinsic::experimental_constrained_fmul:
@@ -154,9 +154,7 @@ struct SimpleValue {
154154
155155} // end anonymous namespace
156156
157- namespace llvm {
158-
159- template <> struct DenseMapInfo <SimpleValue> {
157+ template <> struct llvm ::DenseMapInfo<SimpleValue> {
160158 static inline SimpleValue getEmptyKey () {
161159 return DenseMapInfo<Instruction *>::getEmptyKey ();
162160 }
@@ -169,8 +167,6 @@ template <> struct DenseMapInfo<SimpleValue> {
169167 static bool isEqual (SimpleValue LHS, SimpleValue RHS);
170168};
171169
172- } // end namespace llvm
173-
174170// / Match a 'select' including an optional 'not's of the condition.
175171static bool matchSelectWithOptionalNotCond (Value *V, Value *&Cond, Value *&A,
176172 Value *&B,
@@ -509,9 +505,7 @@ struct CallValue {
509505
510506} // end anonymous namespace
511507
512- namespace llvm {
513-
514- template <> struct DenseMapInfo <CallValue> {
508+ template <> struct llvm ::DenseMapInfo<CallValue> {
515509 static inline CallValue getEmptyKey () {
516510 return DenseMapInfo<Instruction *>::getEmptyKey ();
517511 }
@@ -524,8 +518,6 @@ template <> struct DenseMapInfo<CallValue> {
524518 static bool isEqual (CallValue LHS, CallValue RHS);
525519};
526520
527- } // end namespace llvm
528-
529521unsigned DenseMapInfo<CallValue>::getHashValue(CallValue Val) {
530522 Instruction *Inst = Val.Inst ;
531523
@@ -580,9 +572,7 @@ struct GEPValue {
580572
581573} // namespace
582574
583- namespace llvm {
584-
585- template <> struct DenseMapInfo <GEPValue> {
575+ template <> struct llvm ::DenseMapInfo<GEPValue> {
586576 static inline GEPValue getEmptyKey () {
587577 return DenseMapInfo<Instruction *>::getEmptyKey ();
588578 }
@@ -595,8 +585,6 @@ template <> struct DenseMapInfo<GEPValue> {
595585 static bool isEqual (const GEPValue &LHS, const GEPValue &RHS);
596586};
597587
598- } // end namespace llvm
599-
600588unsigned DenseMapInfo<GEPValue>::getHashValue(const GEPValue &Val) {
601589 auto *GEP = cast<GetElementPtrInst>(Val.Inst );
602590 if (Val.ConstantOffset .has_value ())
0 commit comments