Displaying 5 results from an estimated 5 matches for "define_simple_conversion_functions".
2008 Apr 10
0
[LLVMdev] LLVMBuilder vs LLVMFoldingBuilder
Dominic Hamon wrote:
> Duncan Sands wrote:
>>> Another option that was discussed in #llvm is to nuke LLVMBuilder
>>> and rename LLVMFoldingBuilder to LLVMBuilder. If this was the case,
>>> I'd argue for a flag in the Builder that could retain the old
>>> non-folding functionality for debugging purposes.
>>>
>>
>> this plan
2008 Apr 11
4
[LLVMdev] LLVMBuilder vs LLVMFoldingBuilder
...t::Create(Ptr, Idxs, Idxs+2, Name));
+ }
This should constant fold if Ptr is a constant.
+ CallInst *CreateCall(Value *Callee, const char *Name = "") {
+ return Insert(CallInst::Create(Callee, Name));
You should be indenting by two spaces (I think Chris mentioned this).
- DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMFoldingBuilder, LLVMBuilderRef )
+ DEFINE_SIMPLE_CONVERSION_FUNCTIONS(IRBuilder, LLVMBuilderRef )
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(PATypeHolder, LLVMTypeHandleRef )
Please add spaces so that these line up again.
-<p>Well, that was easy :). In practice, we rec...
2008 Apr 10
3
[LLVMdev] LLVMBuilder vs LLVMFoldingBuilder
Duncan Sands wrote:
>> Another option that was discussed in #llvm is to nuke LLVMBuilder and
>> rename LLVMFoldingBuilder to LLVMBuilder. If this was the case, I'd
>> argue for a flag in the Builder that could retain the old non-folding
>> functionality for debugging purposes.
>>
>
> this plan sounds good to me. However it's not clear to me how
2019 Apr 24
2
[DebugInfo] DWARF C API
...l is to have a C library that reads and parses DWARF debugging format
(just like how llvm-dwarfdump does, but maybe more than just dumping debug
info)
I've started with creating C structure for DebugInfo::DWARF::DWARFContext
which contains all DWARF DIEs in the object file. For this I used
```
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef)
```
then defined some C functions
```
LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) {
std::unique_ptr<DWARFContext> DICtx = DWARFContext::create(*unwrap(Bin));
return wrap(DICtx.release());
}
void LLVMPrintDWARFContext(LLVMDWARFContextRe...
2019 Apr 24
2
[DebugInfo] DWARF C API
...ebugging format (just like how llvm-dwarfdump does, but maybe
> more than just dumping debug info)
> >
> > I've started with creating C structure for
> DebugInfo::DWARF::DWARFContext which contains all DWARF DIEs in the object
> file. For this I used
> > ```
> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(DWARFContext, LLVMDWARFContextRef)
> > ```
> > then defined some C functions
> > ```
> > LLVMDWARFContextRef LLVMCreateDWARFContext(LLVMBinaryRef Bin) {
> > std::unique_ptr<DWARFContext> DICtx =
> DWARFContext::create(*unwrap(Bin));
> > return wrap(D...