Home | History | Annotate | Download | only in Target

Lines Matching defs:Model

82 /// Returns the code generation relocation model. The choices are static, PIC,
84 Reloc::Model TargetMachine::getRelocationModel() const { return RM; }
86 /// Returns the code model. The choices are small, kernel, medium, large, and
88 CodeModel::Model TargetMachine::getCodeModel() const { return CMModel; }
90 /// Get the IR-specified TLS model for Var.
91 static TLSModel::Model getSelectedTLSModel(const GlobalValue *GV) {
105 llvm_unreachable("invalid TLS model");
113 Reloc::Model RM = getRelocationModel();
153 TLSModel::Model TargetMachine::getTLSModel(const GlobalValue *GV) const {
155 Reloc::Model RM = getRelocationModel();
159 TLSModel::Model Model;
162 Model = TLSModel::LocalDynamic;
164 Model = TLSModel::GeneralDynamic;
167 Model = TLSModel::LocalExec;
169 Model = TLSModel::InitialExec;
172 // If the user specified a more specific model, use that.
173 TLSModel::Model SelectedModel = getSelectedTLSModel(GV);
174 if (SelectedModel > Model)
177 return Model;