Displaying 20 results from an estimated 219 matches for "unwrapping".
Did you mean:
unmapping
2019 Jul 31
0
Re: [PATCH] Rust bindings: Implement Event features
Hi Hiroyuki,
On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote:
> This patch includes:
>
> - Event callback handlers
> - Tests related to events(410-430)
> ---
Would it be possible to split the Handle -> Handle<'a> change in an own
small patch? This way it can be documented why it was changed.
> +pub fn event_to_string(events: &[guestfs::Event])
2020 Apr 15
2
question on the signature of malloc
Hi all,
consider the following function from Core.cpp in LLVM 9.0.0:
LLVMValueRef LLVMBuildMalloc(LLVMBuilderRef B, LLVMTypeRef Ty,
const char *Name) {
Type* ITy = Type::getInt32Ty(unwrap(B)->GetInsertBlock()->getContext());
Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty));
AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy);
2019 Aug 05
3
Re: [PATCH] Rust bindings: Implement Event features
I fixed based on comments.
I'll send these two patches to this mailing list.
- Fix Handle -> Handle<'a>
- Add events
Regards,
Hiroyuki
2019年8月1日(木) 0:01 Pino Toscano <ptoscano@redhat.com>:
> Hi Hiroyuki,
>
> On Tuesday, 30 July 2019 07:51:37 CEST Hiroyuki Katsura wrote:
> > This patch includes:
> >
> > - Event callback handlers
> > -
2019 Jul 30
4
[PATCH] Rust bindings: Implement Event features
This patch includes:
- Event callback handlers
- Tests related to events(410-430)
---
generator/rust.ml | 38 ++++++-
rust/src/base.rs | 24 +++--
rust/src/error.rs | 8 +-
rust/src/event.rs | 158 ++++++++++++++++++++++++++++
rust/src/lib.rs | 2 +
rust/tests/040_create_multiple.rs | 2 +-
2019 Aug 05
2
[PATCH 2/2] Rust bindings: Implement callback handlers
This patch includes:
- Event callback handlers
- Tests related to events(410-430)
src/bin/event.rs and src/bin/event_leak.rs
are the PoCs that Boxes related to callbacks are
not leaked.
---
rust/src/bin/.gitkeep | 0
rust/src/bin/event.rs | 29 ++++++
rust/src/bin/event_leak.rs | 30 ++++++
rust/src/error.rs | 6 ++
rust/src/event.rs
2015 Jul 25
4
[LLVMdev] [un]wrapping llvm:DITypeRef
...declared in include/llvm/IR/DebugInfo.h. This is a class with one
data member, a pointer to Metadata.
If I try to make my C type a struct with one pointer, I can't cast it to DITypeRef.
If I try to go inside the classes and use the pointer, I can cast, but can't construct
a DITypeRef when unwrapping, as both its pointer field 'Val' and the constructor are
private.
--
Rodney Bates
rodney.m.bates at acm.org
2008 Mar 27
4
dsl_dataset_t pointer during ''zfs create'' changes
I''ve noticed that the dsl_dataset_t that points to a given dataset
changes during the life time of a ''zfs create'' command. We start out
with one dsl_dataset_t* during dmu_objset_create_sync() but by the time
we are later mounting the dataset we have a different in memory
dsl_dataset_t* referring to the same dataset.
This causes me a big issue with per dataset
2008 May 18
1
[LLVMdev] Duplicate wrapper function in LLVM-C.
Hi (Gordon).
There appears to be two wrapper functions for
DerivedType::refineAbstractTypeTo() in llvm-c (Core.h, Core.cpp):
void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType){
DerivedType *Ty = unwrap<DerivedType>(AbstractType);
Ty->refineAbstractTypeTo(unwrap(ConcreteType));
}
void LLVMRefineType(LLVMTypeRef AbstractTy, LLVMTypeRef ConcreteTy) {
2019 Apr 24
2
[DebugInfo] DWARF C API
...e about the .debug_info
section
unwrap(C)->dump(outs(), DumpOpts);
}
```
However, I got a segfault when trying to dump the LLVMDWARFContextRef using
the second function. More precisely, it segfaulted when dumping the
attribute of the DWARFDie.
I tried to do this instead to see if the wrapping/unwrapping has bugs
```
LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) {
std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*unwrap(Bin));
LLVMDWARFContextRef C = wrap(DICtx.release());
LLVMPrintDWARFContext(C);
return C;
}
```
and the call to LLVMPrintDWARFContext did not...
2015 Jul 26
0
[LLVMdev] [un]wrapping llvm:DITypeRef
.... This is a class
> with one
> data member, a pointer to Metadata.
>
> If I try to make my C type a struct with one pointer, I can't cast it to
> DITypeRef.
> If I try to go inside the classes and use the pointer, I can cast, but
> can't construct
> a DITypeRef when unwrapping, as both its pointer field 'Val' and the
> constructor are
> private.
>
I don't know if I'm understanding the problem exactly, so I'll just point
you to what the Go bindings are doing.
First, define wrap/unwrap for llvm::Metadata (of which DIType is a
descendant):
ht...
2015 Jul 27
2
[LLVMdev] [un]wrapping llvm:DITypeRef
...This is a class with one
> data member, a pointer to Metadata.
>
> If I try to make my C type a struct with one pointer, I can't cast it to DITypeRef.
> If I try to go inside the classes and use the pointer, I can cast, but can't construct
> a DITypeRef when unwrapping, as both its pointer field 'Val' and the constructor are
> private.
>
>
> I don't know if I'm understanding the problem exactly, so I'll just point you to what the Go bindings are doing.
>
> First, define wrap/unwrap for llvm::Metadata (of which DIType is a...
2008 Apr 26
0
[LLVMdev] ParamAttr Patch - Alignment fix
Hi Anders,
Thanks for the patch. I'd like you to incorporate some feedback before
I apply it, though.
> Index: include/llvm/Argument.h
> ===================================================================
> --- include/llvm/Argument.h (revision 50213)
> +++ include/llvm/Argument.h (working copy)
> @@ -60,7 +60,16 @@
> +
> + /// setByValAttr - Set true to give the
2008 Apr 24
2
[LLVMdev] ParamAttr Patch - Alignment fix
Hi..
Updated so you now set alignment through LLVMInstrSetAlignment.
Anders Johnsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ParamAttr.patch
Type: text/x-diff
Size: 7420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080424/cb72b4bb/attachment.patch>
2019 Apr 24
2
[DebugInfo] DWARF C API
...tion const&, llvm::DWARFSectionKind) (DWARFUnit.cpp:44)
by 0x5000AAE:
llvm::DWARFContext::parseNormalUnits()::{lambda(llvm::DWARFSection
const&)#1}::operator()(llvm::DWARFSection const&) const
(DWARFContext.cpp:881)
However, I can't see how this error can relate to the wrapping/unwrapping
macros generating C structure?
Thanks a lot for your time
Son Tuan Vu
On Wed, Apr 24, 2019 at 11:03 PM David Blaikie <dblaikie at gmail.com> wrote:
> Might be worth running under valgrind or the LLVM sanitizers? (could
> help diagnose what's going wrong more specifically than a...
2008 Apr 26
2
[LLVMdev] ParamAttr Patch - Alignment fix
Hi Gordon,
Thanks a lot for the feedback. I can see I've been way to concentrated on how
llvm is build, then on this particular patch. I've done the changes you have
suggested and it's now a lot nicer and cleaner!
Please do say, if there is anything else.
Anders Johnsen
On Saturday 26 April 2008 22:02:45 Gordon Henriksen wrote:
> Hi Anders,
>
> Thanks for the patch.
2015 Jul 27
0
[LLVMdev] [un]wrapping llvm:DITypeRef
...th one
>> data member, a pointer to Metadata.
>>
>> If I try to make my C type a struct with one pointer, I can't cast it to DITypeRef.
>> If I try to go inside the classes and use the pointer, I can cast, but can't construct
>> a DITypeRef when unwrapping, as both its pointer field 'Val' and the constructor are
>> private.
>>
>>
>> I don't know if I'm understanding the problem exactly, so I'll just point you to what the Go bindings are doing.
>>
>> First, define wrap/unwrap for llvm::Metada...
2007 Apr 09
5
Python plugin (Python API for Compiz)
Here is my python loader plugin which loads plain python
scripts as full plugins.
There is not much documentation, but I have included a few
examples to get you going.
triangle - Just a basic plugin which shows a triangle on a button
press. This shows using ctypes to pass values from compiz to the
python opengl bindings.
basiczoom - Zooms in on the screen (basically)
inactive - This is a port
2003 Apr 25
6
Wildcard TDM400P (TDM40B) connectors
Hi,
I'm no phone guy but I've been having quite a bit of fun messing with
Asterisk. I just unwrapped my new Wildcard TDM400P (TDM40B) which is the new
4 port FXS PCI card. It has 4 RJ45 connectors and I'd like to hookup 4
regular phones which are RJ11. If I crip RJ45 connectors to the phone cords
do I simple use the center two pins (pins 4 and 5)?
Thanks,
Randy Smith
Tiger
2015 Jul 28
0
[LLVMdev] [un]wrapping llvm:DITypeRef
...IR/DebugInfo.h. This is a class with one
> data member, a pointer to Metadata.
>
> If I try to make my C type a struct with one pointer, I can't cast it to DITypeRef.
> If I try to go inside the classes and use the pointer, I can cast, but can't construct
> a DITypeRef when unwrapping, as both its pointer field 'Val' and the constructor are
> private.
This was probably an oversight. Frankly, I'm not sure DITypeRef should
really be in the DIBuilder API -- frontends should probably just pass
in a DIType.
Note that in ToT, DITypeRef has completely changed; it'...
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 259 insertions(+), 24 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index aa8b249ff..79e16dfc6 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -60,10 +60,11 @@ let generate_rust () =
pr "
use