Lines Matching refs:Hello

39 Here we describe how to write the "hello world" of passes.  The "Hello" pass is
43 source tree in the ``lib/Transforms/Hello`` directory.
55 we'll assume that you made ``lib/Transforms/Hello``. Finally, you must set up
67 LIBRARYNAME = Hello
78 ``$(LEVEL)/Debug+Asserts/lib/Hello.so`` that can be dynamically loaded by the
132 struct Hello : public FunctionPass {
134 This declares a "``Hello``" class that is a subclass of :ref:`FunctionPass
142 Hello() : FunctionPass(ID) {}
150 errs() << "Hello: ";
154 }; // end of struct Hello
164 char Hello::ID = 0;
171 static RegisterPass<Hello> X("hello", "Hello World Pass",
176 ``Hello``, giving it a command line argument "``hello``", and a name "Hello
193 struct Hello : public FunctionPass {
195 Hello() : FunctionPass(ID) {}
198 errs() << "Hello: ";
205 char Hello::ID = 0;
206 static RegisterPass<Hello> X("hello", "Hello World Pass", false, false);
210 "``Debug+Asserts/lib/Hello.so``" under the top level directory of the LLVM
225 compile "Hello World" to LLVM. We can now run the bitcode file (hello.bc) for
231 $ opt -load ../../../Debug+Asserts/lib/Hello.so -hello < hello.bc > /dev/null
232 Hello: __main
233 Hello: puts
234 Hello: main
239 <writing-an-llvm-pass-registration>`). Because the Hello pass does not modify
248 $ opt -load ../../../Debug+Asserts/lib/Hello.so -help
259 -hello - Hello World Pass
275 $ opt -load ../../../Debug+Asserts/lib/Hello.so -hello -time-passes < hello.bc > /dev/null
276 Hello: __main
277 Hello: puts
278 Hello: main
288 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0000 ( 0.0%) 0.0033 ( 6.9%) Hello World Pass
305 decide what class you should subclass for your pass. The :ref:`Hello World
461 Implementing a ``FunctionPass`` is usually straightforward (See the :ref:`Hello
736 In the :ref:`Hello World <writing-an-llvm-pass-basiccode>` example pass we
1090 :ref:`Hello World <writing-an-llvm-pass-basiccode>` pass interacts with other
1095 …$ opt -load ../../../Debug+Asserts/lib/Hello.so -gcse -licm --debug-pass=Structure < hello.bc > /d…
1127 Lets see how this changes when we run the :ref:`Hello World
1132 …$ opt -load ../../../Debug+Asserts/lib/Hello.so -gcse -hello -licm --debug-pass=Structure < hello.…
1141 Hello World Pass
1142 -- Hello World Pass
1153 Hello: __main
1154 Hello: puts
1155 Hello: main
1157 Here we see that the :ref:`Hello World <writing-an-llvm-pass-basiccode>` pass
1173 …$ opt -load ../../../Debug+Asserts/lib/Hello.so -gcse -hello -licm --debug-pass=Structure < hello.…
1182 Hello World Pass
1183 -- Hello World Pass
1193 Hello: __main
1194 Hello: puts
1195 Hello: main