Lines Matching full:original

58   // Runs the given |pass| on the binary assembled from the |original|.
62 Pass* pass, const std::string& original, bool skip_nop) { in OptimizeToBinary() argument
63 context_ = BuildModule(env_, consumer_, original, assemble_options_); in OptimizeToBinary()
65 << original << std::endl; in OptimizeToBinary()
126 // |original| assembly, and checks whether the optimized binary can be
131 void SinglePassRunAndCheck(const std::string& original, in SinglePassRunAndCheck() argument
137 original, skip_nop, std::forward<Args>(args)...); in SinglePassRunAndCheck()
140 EXPECT_EQ(original == expected, in SinglePassRunAndCheck()
158 << original << std::endl; in SinglePassRunAndCheck()
163 // |original| assembly, and checks whether the optimized binary can be
167 void SinglePassRunAndCheck(const std::string& original, in SinglePassRunAndCheck() argument
170 SinglePassRunAndCheck<PassT>(original, expected, skip_nop, false, in SinglePassRunAndCheck()
175 // |original| assembly, then runs an Effcee matcher over the disassembled
176 // result, using checks parsed from |original|. Always skips OpNop.
183 const std::string& original, bool do_validation, Args&&... args) { in SinglePassRunAndMatch() argument
186 original, skip_nop, do_validation, std::forward<Args>(args)...); in SinglePassRunAndMatch()
188 auto match_result = effcee::Match(disassembly, original); in SinglePassRunAndMatch()
196 // |original| assembly. Check for failure and expect an Effcee matcher
201 void SinglePassRunAndFail(const std::string& original, Args&&... args) { in SinglePassRunAndFail() argument
202 context_ = BuildModule(env_, consumer_, original, assemble_options_); in SinglePassRunAndFail()
204 << original << std::endl; in SinglePassRunAndFail()
214 auto match_result = effcee::Match(errs.str(), original); in SinglePassRunAndFail()
233 // from the |original| assembly, and checks whether the optimized binary can
236 void RunAndCheck(const std::string& original, const std::string& expected) { in RunAndCheck() argument
239 context_ = BuildModule(env_, nullptr, original, assemble_options_); in RunAndCheck()