Displaying 8 results from an estimated 8 matches for "printfn".
Did you mean:
printf
2004 Dec 21
3
[LLVMdev] Help with code
Hi,
I have this call instruction to printf inserted which is causing
an assertion failure. Any pointers to where I am wrong :
Code Dump :
Function *printFn=M.getNamedFunction(std::string("printf"));
Constant *str=ConstantArray::get("Value : %d\n");
std::vector<Value *> Args(2);
std::vector<Constant *> GEPIndices(2);
GEPIndices[0]=Constant::getNullValue(Type::LongTy);
GEPIndices[1]=Constant::getNullValue(Type::LongTy);
A...
2010 Jun 04
5
[LLVMdev] Inserting a function call into bitcode
...ntinue;
Value *condRes = brInst->getCondition();
errs()<<"Type:"<<condRes->getType()->getDescription()<<"\n";
// Looking for a function in Module Symbol table
Constant *PrintFn =
M.getOrInsertFunction("_Z12PrintCondResb", Type::getInt32Ty(context),
condRes->getType(), (Type *)0);
if(!PrintFn) {
errs()<<"GetOrInsertFailed\n";
continue;
}...
2004 Dec 21
0
[LLVMdev] Help with code
On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote:
> I have this call instruction to printf inserted which is causing
> an assertion failure. Any pointers to where I am wrong :
>
> Function *printFn=M.getNamedFunction(std::string("printf"));
std::string() is unnecessary here as it's implicit.
> Constant *str=ConstantArray::get("Value : %d\n");
> std::vector<Value *> Args(2);
> std::vector<Constant *> GEPIndices(2);
> GEPIndices[0]=Constant::get...
2004 Dec 21
3
[LLVMdev] Help with code
...Sorry Typo.
On Tue, 21 Dec 2004, Misha Brukman wrote:
> On Tue, Dec 21, 2004 at 03:45:33PM -0700, Sriraman Tallam wrote:
> > I have this call instruction to printf inserted which is causing
> > an assertion failure. Any pointers to where I am wrong :
> >
> > Function *printFn=M.getNamedFunction(std::string("printf"));
>
> std::string() is unnecessary here as it's implicit.
>
> > Constant *str=ConstantArray::get("Value : %d\n");
> > std::vector<Value *> Args(2);
> > std::vector<Constant *> GEPIndices(2);
>...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...gt;
> if(brInst->isUnconditional()) continue;
>
> Value *condRes = brInst->getCondition();
>
> errs()<<"Type:"<<condRes->getType()->getDescription()<<"\n";
>
> // Looking for a function in Module Symbol table
>
> Constant *PrintFn = M.getOrInsertFunction("_Z12PrintCondResb",
> Type::getInt32Ty(context), condRes->getType(), (Type *)0);
>
> if(!PrintFn) {
>
> errs()<<"GetOrInsertFailed\n";
>
> continue;
>
> }
>
> std::vector<Value *> args(1);
>
> args[0]...
2010 Jun 04
0
[LLVMdev] Inserting a function call into bitcode
...*condRes = brInst->getCondition();
>
>
> errs()<<"Type:"<<condRes->getType()->getDescription()<<"\n";
>
>
>
> // Looking for a function in Module Symbol
> table
>
> Constant *PrintFn =
> M.getOrInsertFunction("_Z12PrintCondResb", Type::getInt32Ty(context),
> condRes->getType(), (Type *)0);
>
> if(!PrintFn) {
>
> errs()<<"GetOrInsertFailed\n";
>
> ...
2019 Sep 03
0
[PATCH v2 05/27] drm/print: Add drm_err_printer()
A simple convienence function that returns a drm_printer which prints
using pr_err()
Changes since v1:
* Make __drm_printfn_err() more consistent with DRM_ERROR() - danvet
Cc: Juston Li <juston.li at intel.com>
Cc: Imre Deak <imre.deak at intel.com>
Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Harry Wentland <hwentlan at amd.com>
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll....
2019 Sep 03
50
[PATCH v2 00/27] DP MST Refactors + debugging tools + suspend/resume reprobing
This is the large series for adding MST suspend/resume reprobing that
I've been working on for quite a while now. In addition, I:
- Refactored and cleaned up any code I ended up digging through in the
process of understanding how some parts of these helpers worked.
- Added some debugging tools along the way that I ended up needing to
figure out some issues in my own code
Note that