[LLVMdev] passing parameters for a analysis pass
willdtz at gmail.com
Wed Jul 7 21:22:18 PDT 2010
If you think a commandline option is the way to go, LLVM makes it
pretty easy to do so, see the documentation here:
Mostly you can just add an appropriate "cl::opt<string>" option (for
your filename, for example) and you're on your way.
On Wed, Jul 7, 2010 at 9:55 PM, Reid Kleckner <reid.kleckner at gmail.com> wrote:
> You can use llvm::sys::Path::GetTemporaryDirectory() and put the
> inputs and outputs there.
> On Wed, Jul 7, 2010 at 4:23 PM, Guoliang Jin <jingl1345 at gmail.com> wrote:
>> I want to pass parameter to a analysis pass. My pass need to use some
>> result from some other tools. I can hard code a file name into my pass,
>> and let my pass read input there, but what if I do not want the file
>> name to be hard coded?
>> Is it possible to do that? If yes, where can I find some documentation
>> about it?
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev