Hi all I write a pass, which will link two module together, Is there some method that I can obtain the path of the input file? If so, I can get the module by the path of the input. Or Is there some method that I can obtain the two modules of the input file by opt? Thanks, yaoxiao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130328/4bed1b21/attachment.html>
John Criswell
2013-Mar-28 14:29 UTC
[LLVMdev] How can a pass obtain the path of input file?
On 3/27/13 8:54 PM, xiaoyaollvm wrote:> Hi all > I write a pass, which will link two module together,There is already code in LLVM that does this. Is there a reason why you're writing your own version?> Is there some method that I can obtain the path of the input file? > If so, I can get the module by the path of the input.I don't know of any way to do this. The bytecode, in general, may not be coming from a file. It may come from a pipe on standard input, for example, on a Unix system. -- John T.> > Or Is there some method that I can obtain the two modules of the input > file by opt? > > Thanks, > yaoxiao > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130328/847485c1/attachment.html>
Apparently Analagous Threads
- [LLVMdev] How to get the Instruction where one function use the global variable.
- How to get the case value from Machine Instruction
- LLVM Social - Beijing: May 19th, 2018
- How to get the case value from Machine Instruction
- How to get the case value from Machine Instruction