search for: callbase

Displaying 17 results from an estimated 17 matches for "callbase".

Did you mean: callback
2018 May 17
15
RFC: Removing TerminatorInst, simplifying calls
...an build a handful of APIs to dispatch between instructions with this property and expose successors. This should be really comparable to the existing code and have nearly no down sides. Then I propose we restructure the type system to allow CallInst and InvokeInst to easily share logic: - Create `CallBase` which is an *abstract* class derived from Instruction that provides all of the common call logic - Make `CallInst` derive from this - Make `InvokeInst` derive from this, extend it for EH aspects and successors - Remove `CallSite` and all accompanying code, rewriting it to use `CallBase`. The end...
2018 May 18
0
RFC: Removing TerminatorInst, simplifying calls
...dispatch between instructions with this property and expose > successors. This should be really comparable to the existing code and > have nearly no down sides. > > Then I propose we restructure the type system to allow CallInst and > InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from > Instruction that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and > successors > - Remove `CallSite` and all accompanying code, rewriting it to...
2018 May 17
2
RFC: Removing TerminatorInst, simplifying calls
...en instructions with this property and expose successors. This should >> be really comparable to the existing code and have nearly no down sides. >> >> Then I propose we restructure the type system to allow CallInst and >> InvokeInst to easily share logic: >> - Create `CallBase` which is an *abstract* class derived from Instruction >> that provides all of the common call logic >> - Make `CallInst` derive from this >> - Make `InvokeInst` derive from this, extend it for EH aspects and >> successors >> - Remove `CallSite` and all accompanying co...
2018 May 17
0
RFC: Removing TerminatorInst, simplifying calls
...dispatch > between instructions with this property and expose successors. This should > be really comparable to the existing code and have nearly no down sides. > > Then I propose we restructure the type system to allow CallInst and > InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from Instruction > that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and > successors > - Remove `CallSite` and all accompanying code, rewriting it to...
2018 May 17
0
RFC: Removing TerminatorInst, simplifying calls
...this property and expose successors. This should >>> be really comparable to the existing code and have nearly no down sides. >>> >>> Then I propose we restructure the type system to allow CallInst and >>> InvokeInst to easily share logic: >>> - Create `CallBase` which is an *abstract* class derived from >>> Instruction that provides all of the common call logic >>> - Make `CallInst` derive from this >>> - Make `InvokeInst` derive from this, extend it for EH aspects and >>> successors >>> - Remove `CallSite` and...
2018 May 19
1
RFC: Removing TerminatorInst, simplifying calls
...between instructions with this property and expose successors. This should > be really comparable to the existing code and have nearly no down sides. > > > > Then I propose we restructure the type system to allow CallInst and > InvokeInst to easily share logic: > > - Create `CallBase` which is an *abstract* class derived from > Instruction that provides all of the common call logic > > - Make `CallInst` derive from this > > - Make `InvokeInst` derive from this, extend it for EH aspects and > successors > > - Remove `CallSite` and all accompanying code, r...
2018 May 19
0
RFC: Removing TerminatorInst, simplifying calls
...ful of APIs to dispatch between instructions with this property and expose successors. This should be really comparable to the existing code and have nearly no down sides. > > Then I propose we restructure the type system to allow CallInst and InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from Instruction that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and successors > - Remove `CallSite` and all accompanying code, rewriting it to use `CallB...
2018 May 17
0
RFC: Removing TerminatorInst, simplifying calls
...spatch between instructions with this property and expose > successors. This should be really comparable to the existing code and > have nearly no down sides. > > Then I propose we restructure the type system to allow CallInst and > InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from > Instruction that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and > successors > - Remove `CallSite` and all accompanying code, rewriting it t...
2018 May 17
0
RFC: Removing TerminatorInst, simplifying calls
...patch between instructions with this property and expose successors. > This should be really comparable to the existing code and have nearly no > down sides. > > Then I propose we restructure the type system to allow CallInst and > InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from > Instruction that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and > successors > - Remove `CallSite` and all accompanying code, rewriting it t...
2020 May 15
2
Issues with new Attributor (replaceAllUses fails with type mismatch)
...ibutor, exactly in File Attributor.cpp, Function Attributor::rewriteFunctionSignatures(), Line No: 1600 (approrimate). The llvm source code at above address is as follows: // Eliminate the instructions *after* we visited all of them. for (auto &CallSitePair : CallSitePairs) { CallBase &OldCB = *CallSitePair.first; CallBase &NewCB = *CallSitePair.second; ModifiedFns.insert(OldCB.getFunction()); CGUpdater.replaceCallSite(OldCB, NewCB); OldCB.replaceAllUsesWith(&NewCB); <---------------------------------------- Failing location OldCB.e...
2020 May 15
2
Issues with new Attributor (replaceAllUses fails with type mismatch)
...utor.cpp, Function Attributor::rewriteFunctionSignatures(), Line No: 1600 (approrimate). > > The llvm source code at above address is as follows: > > // Eliminate the instructions *after* we visited all of them. > for (auto &CallSitePair : CallSitePairs) { > CallBase &OldCB = *CallSitePair.first; > CallBase &NewCB = *CallSitePair.second; > ModifiedFns.insert(OldCB.getFunction()); > CGUpdater.replaceCallSite(OldCB, NewCB); > OldCB.replaceAllUsesWith(&NewCB); <---------------------------------------- Failin...
2018 May 17
0
RFC: Removing TerminatorInst, simplifying calls
...ful of APIs to dispatch between instructions with this property and expose successors. This should be really comparable to the existing code and have nearly no down sides. > > Then I propose we restructure the type system to allow CallInst and InvokeInst to easily share logic: > - Create `CallBase` which is an *abstract* class derived from Instruction that provides all of the common call logic > - Make `CallInst` derive from this > - Make `InvokeInst` derive from this, extend it for EH aspects and successors > - Remove `CallSite` and all accompanying code, rewriting it to use `CallB...
2020 Jan 23
2
Replacing operands in a call instruction
Hello, I am trying to replace a pointer argument of a call instruction with another pointer argument( new argument value for the call instruction). What is the best way to do it? I could not find any hint/guidance on the web or LLVM manual. Thanks, -- Abid M. Malik ****************************************************** "I have learned silence from the talkative, toleration from the
2019 Mar 12
3
Help with bitcast instruction
Hi Tim, I'm still struggling on the instruction: call void bitcast (void (%struct.png_struct_def.68*, i8*, i8* (%struct.png_struct_def.68*, i64)*, void (%struct.png_struct_def.68*, i8*)*)* @png_set_mem_fn to void (%struct.png_struct_def*, i8*, i8* (%struct.png_struct_def*, i64)*, void (%struct.png_struct_def*, i8*)*)*)(%struct.png_struct_def* %create_struct, i8* %mem_ptr, i8*
2018 Nov 04
2
[RFC] Implementing asm-goto support in Clang/LLVM
...bel after the keyword “to”, or to any of the “exceptional” >>> successors (which are expected to be normal basic blocks) denoted by labels >>> in the "or jump" list. >>> >>> The CallBrInst class implementing the instruction is a subclass of >>> CallBase and is used as a terminator. >>> >>> Support for asm-goto is implemented by using “void asm” as the callee >>> expression: >>> >>> callbr void asm sideeffect <flags> "<asm string>", >>> "<constraints...
2018 Nov 03
2
[RFC] Implementing asm-goto support in Clang/LLVM
...e language code), > denoted by the label after the keyword “to”, or to any of the “exceptional” > successors (which are expected to be normal basic blocks) denoted by labels > in the "or jump" list. > > The CallBrInst class implementing the instruction is a subclass of > CallBase and is used as a terminator. > > Support for asm-goto is implemented by using “void asm” as the callee > expression: > > callbr void asm sideeffect <flags> "<asm string>", > "<constraints>"(<argtype1> <arg1>, …, i8*...
2019 Dec 18
5
RFC: Opaque pointer status and future direction
...OptPass::tryMergingIntoMemset 5 llvm::InvokeInst::Create 4 llvm::ConstantHoistingPass::emitBaseConstants 4 llvm::CallBase::getParamByValType 4 llvm::OpenMPIRBuilder::getOrCreateIdent 3 getFoldedSizeOf 3 llvm::NV...