search for: mypassid

Displaying 4 results from an estimated 4 matches for "mypassid".

Did you mean: mypass
2017 Jan 06
2
LLVMTargetMachine with optimization level passed from clang.
...ff you’re looking for lives in TargetPassConfig.cpp. There are a few examples of how you might do it that live in there too. What it comes down to is finding the place you want your pass to live and sticking in some logic like this in there: if (getOptLevel() != CodeGenOpt::None) addPass(&MyPassID); A lot of passes are added in just TargetPassConfig::addMachinePasses(), but some live in more specialized areas like, for the sake of example, TargetPassConfig::addMachineLateOptimization(). You can add it wherever seems best for your specific pass. Hope that helps! Jessica Paquette > On J...
2017 Jan 06
3
LLVMTargetMachine with optimization level passed from clang.
...ves in TargetPassConfig.cpp. There are a few examples of how you might do it that live in there too. > > What it comes down to is finding the place you want your pass to live and sticking in some logic like this in there: > > if (getOptLevel() != CodeGenOpt::None) > addPass(&MyPassID); > > A lot of passes are added in just TargetPassConfig::addMachinePasses(), but some live in more specialized areas like, for the sake of example, TargetPassConfig::addMachineLateOptimization(). You can add it wherever seems best for your specific pass. > > Hope that helps! > &g...
2017 Jan 05
3
LLVMTargetMachine with optimization level passed from clang.
I want the optimization to be turned on at -O1 and above. In my case, it is a target independent back-end pass. (Eg: MachinePipeliner) On 2017-01-04 18:10, Mehdi Amini wrote: >> On Jan 4, 2017, at 4:03 PM, Sumanth Gundapaneni via llvm-dev >> <llvm-dev at lists.llvm.org> wrote: >> >> I see the BackendUtil.cpp of Clang creates the TargetMachine with >> the
2017 Jan 06
2
LLVMTargetMachine with optimization level passed from clang.
...amples of how you might do it that live in there too. > >> > >> What it comes down to is finding the place you want your pass to live > and sticking in some logic like this in there: > >> > >> if (getOptLevel() != CodeGenOpt::None) > >> addPass(&MyPassID); > >> > >> A lot of passes are added in just TargetPassConfig::addMachinePasses(), > but some live in more specialized areas like, for the sake of example, > TargetPassConfig::addMachineLateOptimization(). You can add it wherever > seems best for your specific pass. >...