Home | History | Annotate | Download | only in CppBackend

Lines Matching refs:GlobalVariable

138     void printThreadLocalMode(GlobalVariable::ThreadLocalMode TLM);
156 void printVariableUses(const GlobalVariable *GV);
157 void printVariableHead(const GlobalVariable *GV);
158 void printVariableBody(const GlobalVariable *GV);
339 void CppWriter::printThreadLocalMode(GlobalVariable::ThreadLocalMode TLM) {
341 case GlobalVariable::NotThreadLocal:
342 Out << "GlobalVariable::NotThreadLocal";
344 case GlobalVariable::GeneralDynamicTLSModel:
345 Out << "GlobalVariable::GeneralDynamicTLSModel";
347 case GlobalVariable::LocalDynamicTLSModel:
348 Out << "GlobalVariable::LocalDynamicTLSModel";
350 case GlobalVariable::InitialExecTLSModel:
351 Out << "GlobalVariable::InitialExecTLSModel";
353 case GlobalVariable::LocalExecTLSModel:
354 Out << "GlobalVariable::LocalExecTLSModel";
438 if (const GlobalVariable* GV = dyn_cast<GlobalVariable>(val)) {
972 void CppWriter::printVariableUses(const GlobalVariable *GV) {
982 } else if (const GlobalVariable* gv = dyn_cast<GlobalVariable>(Init)) {
995 void CppWriter::printVariableHead(const GlobalVariable *GV) {
996 nl(Out) << "GlobalVariable* " << getCppName(GV);
1004 Out << " = new GlobalVariable(/*Module=*/*mod, ";
1060 void CppWriter::printVariableBody(const GlobalVariable *GV) {
1672 if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV))
1683 if (GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV))
1705 if (GlobalVariable *F = dyn_cast<GlobalVariable>(GV))
1721 if (GlobalVariable *Var = dyn_cast<GlobalVariable>(GV))
1896 for (const GlobalVariable &I : TheModule->globals())
1909 for (const GlobalVariable &I : TheModule->globals())
1938 Out << "#include <llvm/IR/GlobalVariable.h>\n";
2033 const GlobalVariable* GV = TheModule->getNamedGlobal(varName);