how to perform TargetLowering in a IR-trasformatio

2019-07-11 23:27发布

问题:

To provide TLS support to orcjit, I'm like to transforom llvm::Modules without TLS emulation to ones that emulateTLS and depend on a Runtime.

Similar functionality is already implemented in TargetLowering::LowerToTLSEmulatedModel, however it does not operate on IR.

So, how can i implement and perform this operation as an llvm::Pass ?

标签: c++ llvm jit lli