search for: n3v3rm03

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

2019 Dec 27
2
Calling LowerSwitchPass causing crash in llvm 9
There is no “switch” instruction in the target object code. It usually gets compiled into a switch table with instructions to load from it. Afaik Zhang > 在 2019年12月26日,17:49,n3v3rm03 via llvm-dev <llvm-dev at lists.llvm.org> 写道: > > Sorry I found an early thread discussing this question. I guess I shouldn't create lower switch pass like this. > However, I have another question, even if I don't call this pass, the switch instructions will be finally comp...
2019 Jan 19
3
Can't find symbol from llvm backend
...n at sony.com>: > Do you have a use of the new variable as well? If not, it might be > optimized out between the point where you create it and your > MachineFunction pass. > > --paulr > > > > *From:* llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] *On Behalf Of *n3v3rm03 > via llvm-dev > *Sent:* Friday, January 18, 2019 5:57 AM > *To:* llvm-dev at lists.llvm.org > *Subject:* [llvm-dev] Can't find symbol from llvm backend > > > > Hi, I am new to llvm. > > I create a global variable called "test_llvm_var" in the front end &...
2019 Dec 26
2
Calling LowerSwitchPass causing crash in llvm 9
Hi, I am trying to call LowerSwitchPass directly in my custom pass in this way: FunctionPass *lower = createLowerSwitchPass(); lower->runOnFunction(*f); But it will crash when running lower->runOnFunction(*f) in llvm-9. I was using this method in llvm-8 and it worked fine. It seems the crash happens at the first line of the LowerSwitch::runOnFunction(Function &F) in the newer
2019 Jan 18
2
Can't find symbol from llvm backend
Hi, I am new to llvm. I create a global variable called "test_llvm_var" in the front end function pass like this: new GlobalVariable(*m, tmp->getType(), true, llvm::GlobalValue::ExternalLinkage, tmp, "test_llvm_var"); where tmp is a function. Then I tried to access this global variable in the back end MachineFunctionPass like this: MCContext&