kparzysz-quic commented on PR #15761: URL: https://github.com/apache/tvm/pull/15761#issuecomment-1728184096
> Maybe, in future we could make this object a persistent one, even cache some things inside, but I would put this idea aside for future. We're trying to prevent the LLVM state from being persistent. The specific use-case was using command-line options with LLVM. Once you set use some flags, their effects will persist, and LLVM may even prevent you from using the same flags again. The workflow is 1. Create LLVM instance object. 2. Set up LLVM as you want (i.e. by command-line flags). This isn't required if you don't want to change anything. 3. Use LLVM functions. 4. Destroy the instance object. 5. Don't use any LLVM functions again, and if you want to, repeat 1-4. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
