search for: gv

Displaying 20 results from an estimated 944 matches for "gv".

Did you mean: gve
2014 Mar 10
2
[LLVMdev] GlobalValues appear in their own use lists?
...x: lib/IR/Verifier.cpp =================================================================== --- lib/IR/Verifier.cpp (revision 203468) +++ lib/IR/Verifier.cpp (working copy) @@ -360,6 +360,11 @@ "Global is external, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only glo...
2019 Apr 08
2
pjsip endoint woes
...> > pjsip: > > > > [obi202-auth](!) > > type = auth > > auth_type = userpass > > password = <mypass> > > > > [obi202-aor](!) > > type = aor > > max_contacts = 2 > > > > ; ===== endpoints  ======== > > > > [gv-voice](obi202-endpoint) > > auth = gv-voice > > aors = gv-voice > > identify_by=auth_username > > ;identify_by=username ; I also tried this. Same result. > > context = gv-voice > > > > [gv-voice](obi202-auth) > > username = gv-voice > > > &...
2019 Apr 05
2
pjsip endoint woes
I'm trying to set up pjsip to work with an obi202 and google voice. But I can't configure the endpoint. pjsip: [obi202-auth](!) type = auth auth_type = userpass password = <mypass> [obi202-aor](!) type = aor max_contacts = 2 ; ===== endpoints ======== [gv-voice](obi202-endpoint) auth = gv-voice aors = gv-voice identify_by=auth_username ;identify_by=username ; I also tried this. Same result. context = gv-voice [gv-voice](obi202-auth) username = gv-voice [gv-voice](obi202-aor) ############## From the pjsip logging: <--- Received SIP request (...
2013 Oct 24
2
[LLVMdev] LLVM use chains
...w f is a function\0A\00", align 1 ; 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 } Then I get after trying to erase the function from the module: 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::Mo...
2010 Oct 24
5
Integrating Asterisk 1.8 with Google Talk and Google Voice
Evening, Has anyone seen a how-to on getting Asterisk to work with Google Talk and Google Voice? Thanks
2011 Mar 18
2
[LLVMdev] Text or Data symbol
...for help from LLVM developers ;) For my DSP backend, at the lowering stage and also at the AsmPrinter stage, I need to know if a GlobalAddress is a code or a data address. So I tried at the lowering stage to use: GlobalAddressSDNode *GSDN = cast<GlobalAddressSDNode>(Op); const GlobalValue *GV = GSDN->getGlobal(); GV->hasSection() and GV->getSection() But the section is not set at this stage (hasSection = false) And at the AsmPrinter stage: const GlobalValue *GV = MO.getGlobal(); SectionKind sectionKind = Mang->getSymbol(GV)->getSection().getKind(); But again the sectio...
2011 Mar 21
1
[LLVMdev] Text or Data symbol
On 3/21/11 2:00 PM, Damien Vincent wrote: > I reply to myself... I didn't go in the right direction in my previous > email. > > There is an easy way to tell if a GlobalValue corresponds to data or code: > const GlobalValue *GV; > if(Function::classof(GV)) > ... // process the global value as a function > else > ... // process the global value as data > > Damien You should be able to use isa<Function>(GV) to determine if GV is a function. You may have to put in an additional check to see...
2011 Mar 21
0
[LLVMdev] Text or Data symbol
I reply to myself... I didn't go in the right direction in my previous email. There is an easy way to tell if a GlobalValue corresponds to data or code: const GlobalValue *GV; if(Function::classof(GV)) ... // process the global value as a function else ... // process the global value as data Damien On Fri, Mar 18, 2011 at 3:16 PM, Damien Vincent <damien.llvm at gmail.com>wrote: > > I am again calling for help from LLVM developers ;) > > Fo...
2011 Mar 08
2
[LLVMdev] TargetData::getPreferredAlignment(const GlobalVariable *GV) is strange ...
...s 1-, 2-, 4- and 8-byte boundaries :-( I checked the svn log but I didn't find any explanation, the doxygen docu is not very helpful here, too. So, any help on this issue is highly appreciated. Thanks in advance! Ciao, Fabian unsigned TargetData::getPreferredAlignment(const GlobalVariable *GV) const { const Type *ElemType = GV->getType()->getElementType(); unsigned Alignment = getPrefTypeAlignment(ElemType); if (GV->getAlignment() > Alignment) Alignment = GV->getAlignment(); ==================== confusion starts ======================== if (GV->hasInitiali...
2009 Jul 25
3
[LLVMdev] Bug in ExecutionEngine::getConstantValue() -- Instruction::PtrToInt
I think I might have found a bug in the exection engine's 'constants folding'. Basically APInt's parameters are the wrong way round. Line 577 for lib/ExecutionEngine/ExecutionEngine.cpp :- case Instruction::PtrToInt: { GenericValue GV = getConstantValue(Op0); uint32_t PtrWidth = TD->getPointerSizeInBits(); GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); return GV; } Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/at...
2013 Oct 24
0
[LLVMdev] LLVM use chains
...ction 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 > } > > Then I get after trying to erase the function from the module: > > 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...
2019 Mar 29
3
why doesn't extension "s" work ?
I'm using "s" extension in my dialplan: [gv-voice] exten => s,1,Verbose(callerid is "${CALLERID(all)}" or "${CALLERID(num)}") ;Set(Var_TO=${SIP_HEADER(TO)}) ; PJSIP_HEADER(read,To) same=>n,.... But when a call comes in to the gv-voice context, "s" doesn't match the extension: res_pjsip_session...
2015 Dec 11
4
trouble hoisting GlobalValues
Hello LLVM, To reduce the code-size cost of relocations, I'm trying to hoist GlobalValues that are used many times. A new pass hides each hoisted GV behind a BITCAST in the dominating BB. The pass then updates users with the output of the BITCAST. This pass works properly AFAICT. The problems come in instruction selection. SelectionDAGBuilder::visitBitCast() treats the BITCAST as a no-op and eventually users of the GV fold the relocation as...
2011 Mar 09
0
[LLVMdev] TargetData::getPreferredAlignment(const GlobalVariable *GV) is strange ...
...gt; I checked the svn log but I didn't find any explanation, the doxygen > docu is not very helpful > here, too. So, any help on this issue is highly appreciated. > > Thanks in advance! > > Ciao, Fabian > > unsigned TargetData::getPreferredAlignment(const GlobalVariable *GV) const { > const Type *ElemType = GV->getType()->getElementType(); > unsigned Alignment = getPrefTypeAlignment(ElemType); > if (GV->getAlignment()> Alignment) > Alignment = GV->getAlignment(); > > ==================== confusion starts ================...
2016 Aug 24
2
Change GlobalValue Type/Initializer
...value and to change all theses uses. The second problem that I have is with the function Verifier::visitGlobalVariable. Sometimes, the verifier tells me that the initializer type does not match the global variable type even when this is the case. This function will do the following check: if (GV.hasInitializer()) { Assert(GV.getInitializer()->getType() == GV.getType()->getElementType(), "Global variable initializer type does not match global " "variable type!", &GV); But I did not find any overload for the comparator opera...
2010 Jan 28
2
[LLVMdev] llc generated machine assembly code for NASM
...ave not applied any optimization pass yet. On linux, it can go all the way through with the system native assemlber and linker to generate executables. And it runs. I ran into problems on Windows since the generated assembly code is not able to be assembled by NASM. Here is an example C code: int gv; int foo(int p) { int lv; gv = p; if (p > 5) { lv = 0; while (gv>0) { lv = lv + gv; gv = gv - 1; } } else { lv = 1; while (gv>0) { lv = lv * gv; gv = gv - 1; } } return lv; } Here is the LLVM IR I generated: ; ModuleID = '...
2014 Mar 11
3
[LLVMdev] GlobalValues appear in their own use lists?
...x: lib/IR/Verifier.cpp =================================================================== --- lib/IR/Verifier.cpp (revision 203523) +++ lib/IR/Verifier.cpp (working copy) @@ -360,6 +360,11 @@ "Global is external, but doesn't have external or weak linkage!", &GV); + for (Value::const_use_iterator UI = GV.use_begin(), UE = GV.use_end(); + UI != UE; ++UI) { + Assert1(*UI != &GV, "Global values cannot be their own uses!", &GV); + } + Assert1(!GV.hasAppendingLinkage() || isa<GlobalVariable>(GV), "Only glo...
2002 Feb 01
3
matrix with ncol=1
...nd it turns out that the function as.matrix takes a lot of time in my code. There is only one reason why I need as.matrix: My code should work for matrices with ncol=p and p should be allowed to be 1 or larger. Now I have a matrix x with dim(x)=(n,p), and I need to work with the submatrix y <-x[gv,], (gv a vector of n logicals) and to calculate cov(y) and other functions for matrices. Unfortunately, if p=1, y is no longer a matrix, cov(y) gives an error, and therefore I use y <- as.matrix(x[gv,]) which makes my program surprisingly slower (this is because lots of gv-vectors are needed)....
2016 Aug 24
2
Change GlobalValue Type/Initializer
...e module and destroying the context destroys everything that is created in the context. It is not clear to me what other context you could even manage to use here conceptually. Actually I was using llvm::getGlobalContext() in order to get the context. It seems that this is not the same context as gv->getContext(). Greetings, JOHAN WEHRLI - Product and development Rue Galilée 7 CH-1400 Yverdon-les-Bains https://strong.codes <https://strong.codes/> > On 24 Aug 2016, at 16:55, Mehdi Amini <mehdi.amini at apple.com> wrote: > >> >> On Aug 24, 2016, a...
2012 Jun 09
2
[LLVMdev] Extracting an AST to Graphviz using Clang
Just in case another person comes to get stuck on this on Mac OS: http://web.mit.edu/mfloyd/www/computing/mac/gv/ This link explains the process on getting gv installed since Xaw3d dependency even has a 'error' (actually missing few parameters) on a line that prevents code compilation that needs to be fixed before configuring and make it works. -- I have gv installed now and my bash console can reco...