OLD | NEW |
1 //===- subzero/src/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=// | 1 //===- subzero/src/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 /// | 9 /// |
10 /// \file | 10 /// \file |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 } | 91 } |
92 | 92 |
93 template <typename TraitsType> | 93 template <typename TraitsType> |
94 InstImpl<TraitsType>::InstX86Label::InstX86Label(Cfg *Func, | 94 InstImpl<TraitsType>::InstX86Label::InstX86Label(Cfg *Func, |
95 TargetLowering *Target) | 95 TargetLowering *Target) |
96 : InstX86Base(Func, InstX86Base::Label, 0, nullptr), | 96 : InstX86Base(Func, InstX86Base::Label, 0, nullptr), |
97 Number(Target->makeNextLabelNumber()) {} | 97 Number(Target->makeNextLabelNumber()) {} |
98 | 98 |
99 template <typename TraitsType> | 99 template <typename TraitsType> |
100 IceString InstImpl<TraitsType>::InstX86Label::getName(const Cfg *Func) const { | 100 IceString InstImpl<TraitsType>::InstX86Label::getName(const Cfg *Func) const { |
| 101 if (!BuildDefs::dump()) |
| 102 return IceString(); |
101 return ".L" + Func->getFunctionName() + "$local$__" + std::to_string(Number); | 103 return ".L" + Func->getFunctionName() + "$local$__" + std::to_string(Number); |
102 } | 104 } |
103 | 105 |
104 template <typename TraitsType> | 106 template <typename TraitsType> |
105 InstImpl<TraitsType>::InstX86Br::InstX86Br( | 107 InstImpl<TraitsType>::InstX86Br::InstX86Br( |
106 Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, | 108 Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, |
107 const InstImpl<TraitsType>::InstX86Label *Label, BrCond Condition, | 109 const InstImpl<TraitsType>::InstX86Label *Label, BrCond Condition, |
108 Mode Kind) | 110 Mode Kind) |
109 : InstX86Base(Func, InstX86Base::Br, 0, nullptr), Condition(Condition), | 111 : InstX86Base(Func, InstX86Base::Br, 0, nullptr), Condition(Condition), |
110 TargetTrue(TargetTrue), TargetFalse(TargetFalse), Label(Label), | 112 TargetTrue(TargetTrue), TargetFalse(TargetFalse), Label(Label), |
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2888 return; | 2890 return; |
2889 Ostream &Str = Func->getContext()->getStrDump(); | 2891 Ostream &Str = Func->getContext()->getStrDump(); |
2890 Str << "IACA_END"; | 2892 Str << "IACA_END"; |
2891 } | 2893 } |
2892 | 2894 |
2893 } // end of namespace X86NAMESPACE | 2895 } // end of namespace X86NAMESPACE |
2894 | 2896 |
2895 } // end of namespace Ice | 2897 } // end of namespace Ice |
2896 | 2898 |
2897 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H | 2899 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H |
OLD | NEW |