Lines Matching refs:GV
594 void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
597 void *Ptr = getPointerToGlobalIfAvailable(GV);
601 if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) {
603 if (GV->getName() == "__dso_handle")
606 Ptr = sys::DynamicLibrary::SearchForAddressOfSymbol(GV->getName());
609 +GV->getName());
611 addGlobalMapping(GV, Ptr);
615 Ptr = getMemoryForGV(GV);
616 addGlobalMapping(GV, Ptr);
617 EmitGlobalVariable(GV); // Initialize the variable.
651 char* JIT::getMemoryForGV(const GlobalVariable* GV) {
657 if (isGVCompilationDisabled() && !GV->isConstant()) {
665 Type *GlobalType = GV->getType()->getElementType();
667 size_t A = getDataLayout()->getPreferredAlignment(GV);
668 if (GV->isThreadLocal()) {