Displaying 7 results from an estimated 7 matches for "owningbinary".
2015 Jul 15
2
[LLVMdev] SymbolRef and getSize
...he clang driver and I encounter a strange bug.
It occurs when I used the getSize function from the SymbolRef class.
On iOS, the number returned is not always correct (some function have the right size).
Sadly,
This is my code (at the end of the main function into driver.cpp) :
####
ErrorOr<OwningBinary<Binary>> BinaryOrErr = createBinary(file);
if (std::error_code ec = BinaryOrErr.getError()) {
return ec.value();
}
Binary &Binary = *BinaryOrErr.get().getBinary();
object::ObjectFile *objfile;
objfile = dyn_cast<ObjectFile>(&Binary);
for (const SymbolRef &Symbol : ob...
2017 Jul 06
2
ErrorInfo::message() possibly broken in LLVM-4.0.1
Hello,
I have the following snippet of code that causes valgrind to freak out
over unitialized bytes.
llvm::Expected<llvm::object::OwningBinary<llvm::object::ObjectFile>> e
= llvm::object::ObjectFile::createObjectFile(llvm::StringRef(fname));
if (!e) {
llvm::handleAllErrors(e.takeError(),
[](const llvm::ErrorInfo<llvm::ECError> &EI) {
std::cerr << EI.m...
2017 Nov 14
1
OrcJIT + CUDA Prototype for Cling
...e object
> files as they're generated. Then you can inspect the object files
> being generated by the compiler to see what might be wrong with them.
>
> Something like this:
>
> class KaleidoscopeJIT {
> private:
>
> using ObjectPtr =
> std::shared_ptr<object::OwningBinary<object::ObjectFile>>;
>
> static ObjectPtr dumpObject(ObjectPtr Obj) {
> SmallVector<char, 256> UniqueObjFileName;
> sys::fs::createUniqueFile("jit-object-%%%.o", UniqueObjFileName);
> std::error_code EC;
> raw_fd_ostream ObjFileStream(Un...
2017 Sep 27
2
OrcJIT + CUDA Prototype for Cling
Dear LLVM-Developers and Vinod Grover,
we are trying to extend the cling C++ interpreter
(https://github.com/root-project/cling) with CUDA functionality for
Nvidia GPUs.
I already developed a prototype based on OrcJIT and am seeking for
feedback. I am currently a stuck with a runtime issue, on which my
interpreter prototype fails to execute kernels with a CUDA runtime error.
=== How to use the
2018 Mar 26
0
Interest in integrating a linux perf JITEventListener?
...->has_error())
> + SuccessfullyInitialized = true;
> +}
> +
> +void PerfJITEventListener::NotifyObjectEmitted(
> + const ObjectFile &Obj,
> + const RuntimeDyld::LoadedObjectInfo &L) {
> +
> + if (!SuccessfullyInitialized)
> + return;
> +
> + OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj);
> + const ObjectFile &DebugObj = *DebugObjOwner.getBinary();
> +
> + // Get the address of the object image for use as a unique identifier
> + DWARFContextInMemory Context(DebugObj);
> +
> + // Use symbol info to...
2016 Dec 29
1
Interest in integrating a linux perf JITEventListener?
Having something like this available in tree would definitely be
useful. For simplicity, why don't we start with support for the second
style? This is the long term useful one and would be a good starting
point for getting the code in tree. Can you give a pointer to the patch
so that I can assess the rough complexity? If it's simple enough, I'd
be happy to help get it reviewed
2017 Feb 02
0
Interest in integrating a linux perf JITEventListener?
Hi,
On 2016-12-29 13:17:50 -0800, Philip Reames wrote:
> Having something like this available in tree would definitely be
> useful.
Cool.
> For simplicity, why don't we start with support for the second style? This
> is the long term useful one and would be a good starting point for getting
> the code in tree.
Works for me.
> Can you give a pointer to the patch so that