Displaying 9 results from an estimated 9 matches for "printmodul".
Did you mean:
printmodule
2010 Apr 06
1
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
Is there a way to make the printer to display float values in decimal
form instead of the cryptic 0x... ?
--
Regards,
Gabi
http://bugspy.net
2010 Apr 06
2
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
> PS: Maybe not for x86 long double though.
Right, so how to make x86 double displayed in decimal ?
--
Regards,
Gabi
http://bugspy.net
2010 Apr 06
0
[LLVMdev] PrintModule: How to make it show floats in decimal instead of hex?
On 06/04/10 23:12, Gabi wrote:
>> PS: Maybe not for x86 long double though.
>
> Right, so how to make x86 double displayed in decimal ?
Currently this is never done AFAIK. I don't know why, maybe Dale
does.
Ciao,
Duncan.
2013 Oct 24
2
[LLVMdev] LLVM use chains
...:
511 GV->eraseFromParent();
(gdb) p GV->dump()
; Function Attrs: ssp uwtable
define i32 @_Z1fv() #2 {
entry:
%call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([21
x i8]* @.str1, i32 0, i32 0))
ret i32 0
}
(gdb) n
513 }
(gdb) br llvm::AssemblyWriter::printModule(llvm::Module const*)
(gdb) p m_CurTransaction->getModule()->dump()
llvm::AssemblyWriter::printGlobal (this=0x7fff5fbfe850, GV=0x107274058)
at
/Users/vvassilev/workspace/root/interpreter/llvm/src/lib/IR/AsmWriter.cpp:1444
1444 if (GV->isMaterializable())
(gdb) p GV->use_empty()
$...
2013 Oct 24
0
[LLVMdev] LLVM use chains
...>dump()
>
> ; Function Attrs: ssp uwtable
> define i32 @_Z1fv() #2 {
> entry:
> %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([21 x
> i8]* @.str1, i32 0, i32 0))
> ret i32 0
> }
>
> (gdb) n
> 513 }
> (gdb) br llvm::AssemblyWriter::printModule(llvm::Module const*)
> (gdb) p m_CurTransaction->getModule()->dump()
> llvm::AssemblyWriter::printGlobal (this=0x7fff5fbfe850, GV=0x107274058) at
> /Users/vvassilev/workspace/root/interpreter/llvm/src/lib/IR/AsmWriter.cpp:1444
> 1444 if (GV->isMaterializable())
> (gdb)...
2008 Sep 25
2
[LLVMdev] llvm-as and implicit value naming
...4
8 inttoptr i32 %X to i8* ; <i8*> :3
9 store i8* %3, i8** %2, align 4
10 ret void
11}
which produces
llvm-as: test.ll:9,0: Numbered value (%2) of type 'i8 *' does not match expected type, 'i8 * *'
I originally found this error when trying to assemble code produce by the PrintModule pass manager on code (many thousands of lines long) that had passed verification.
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2994 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev...
2013 Oct 24
2
[LLVMdev] LLVM use chains
...uwtable
>> define i32 @_Z1fv() #2 {
>> entry:
>> %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([21 x
>> i8]* @.str1, i32 0, i32 0))
>> ret i32 0
>> }
>>
>> (gdb) n
>> 513 }
>> (gdb) br llvm::AssemblyWriter::printModule(llvm::Module const*)
>> (gdb) p m_CurTransaction->getModule()->dump()
>> llvm::AssemblyWriter::printGlobal (this=0x7fff5fbfe850, GV=0x107274058) at
>> /Users/vvassilev/workspace/root/interpreter/llvm/src/lib/IR/AsmWriter.cpp:1444
>> 1444 if (GV->isMaterializab...
2018 Sep 06
2
Replacing a function from one module into another one
...py = origMod.get();
llvm::SMDiagnostic refErr;
llvm::LLVMContext refContext;
std::unique_ptr<llvm::Module> refMod(llvm::parseIRFile(referenceFileName,
refErr, refContext));
llvm::Module *refMod_copy = refMod.get();
addFunction(origMod_copy, refMod_copy, newFuncName, oldFuncName);
printModule(origMod_copy);
std::cout << "Finish\n"; // Make sure the program finished
}
int main() {
std::string oldFuncName = "foo2";
std::string newFuncName = "foo3";
replaceFunctions(oldFuncName, newFuncName);
return 0;
}
The complete error after printing th...
2018 Sep 06
2
Replacing a function from one module into another one
Hi Philip,
Thanks for the reference, I was able to follow it and copy the code that I
saw necessary, but I still have some issues (references are still not
updated). I created the function:
void populateVMap(llvm::ValueToValueMapTy &VMap, llvm::Function *fOld,
llvm::Function *fNew) {
llvm::Function::arg_iterator DestI = fOld->arg_begin();
for (llvm::Function::const_arg_iterator J =