Displaying 5 results from an estimated 5 matches for "buildlazyarguments".
2013 Nov 05
1
[LLVMdev] Thread-safe cloning
...and it works
beautifully - and isn't that much slower than cloning.
I have noticed however that the copy process isn't thread-safe. The
problem is that in Function, there is lazy initialization code for
arguments:
void CheckLazyArguments() const {
if (hasLazyArguments())
BuildLazyArguments();
}
void BuildLazyArguments() const;
I've worked around this by calling Function::getArgumentList() outside
the threaded code to harden it before the threaded copies. Are there
other lazy data structures that need to be solidified before threading?
Should I be playing it safe and p...
2013 Jun 18
0
[LLVMdev] Thread-safe cloning
You could probably round trip it through bitcode in memory. I think all of
the IR cloning functionality assumes that only one context is being used.
Even if the serialization isn't efficient as a clone could be, it should
give you very high confidence that everything Just Works. :)
On Tue, Jun 18, 2013 at 1:16 PM, Andrew Clinton <andrew at sidefx.com> wrote:
> I have a
2013 Jun 18
2
[LLVMdev] Thread-safe cloning
I have a Module/LLVMContext that I'd like to clone and manipulate in
different threads (each thread may perform different translation /
optimization, so they need unique copies). Currently this process has
to be locked, since each clone of the Module still refers to the same
LLVMContext. Is there a way to clone both the Module and LLVMContext so
that the copies can be manipulated
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
...:arg_size() const", referenced from:
CallExprAST::Codegen() in ccHkdHVT.o
PrototypeAST::Codegen() in ccHkdHVT.o
"llvm::VectorType::get(llvm::Type const*, unsigned int)", referenced from:
BinaryExprAST::Codegen() in ccHkdHVT.o
"llvm::Function::BuildLazyArguments() const", referenced from:
PrototypeAST::Codegen() in ccHkdHVT.o
"llvm::FunctionType::get(llvm::Type const*, std::vector<llvm::Type
const*, std::allocator<llvm::Type const*> > const&, bool)", referenced
from:
PrototypeAST::Codegen() in ccHkdHVT...
2010 Feb 07
0
[LLVMdev] Help with Mac OS X 10.6.2 build
...enced from:
> CallExprAST::Codegen() in ccHkdHVT.o
> PrototypeAST::Codegen() in ccHkdHVT.o
> "llvm::VectorType::get(llvm::Type const*, unsigned int)", referenced from:
> BinaryExprAST::Codegen() in ccHkdHVT.o
> "llvm::Function::BuildLazyArguments() const", referenced from:
> PrototypeAST::Codegen() in ccHkdHVT.o
> "llvm::FunctionType::get(llvm::Type const*, std::vector<llvm::Type
> const*, std::allocator<llvm::Type const*> > const&, bool)", referenced
> from:
> PrototypeA...