search for: replaceuseswith

Displaying 3 results from an estimated 3 matches for "replaceuseswith".

Did you mean: replaceusesofwith
2002 Sep 26
1
[LLVMdev] ReplaceUsesWith
When I try to do this: GetElementPtrInst *newIns = new GetElementPtrInst( ... ); OldIns->ReplaceAllUsesWith( newIns ); When I compile the code, it always says, no matching function for call to `GetElementPtrInst::ReplaceAllUsesWith (GetElementPtrInst *&)' But since GetElementPtrInst is a subclass of Value, why cannot use this way? What's wrong here? thanks, xiaodong
2020 Aug 13
3
Deterministic function return attribute
...given input parameters. The main thing would be to merge two calls with the same parameters when the function is declared but not defined. (just like two stores). I'll call this property mergability. %1 := call @test(%0) %2 := call @test(%0) and the optimization would be something like (%2).replaceUsesWith((%1)). I think it's related to speculatable & readnone in LLVM, (if I understood well, it's the same as GCC's __attribute__((pure)), but I'm not sure whether there are edgecases where the mergability is not equivalent. I've seen somewhere that maybe malloc has these attrib...
2020 Aug 14
2
Fwd: Deterministic function return attribute
...en the function is declared but not defined. (just like two stores). >>  > I'll call this property mergability. >>  > >>  > %1 := call @test(%0) >>  > %2 := call @test(%0) >>  > >>  > and the optimization would be something like (%2).replaceUsesWith((%1)). >>  > >>  > I think it's related to speculatable & readnone in LLVM, (if I >>  > understood well, it's the same as GCC's __attribute__((pure)), but I'm >>  > not sure whether there are edgecases where the mergability is not >&g...