< prev index next >

src/hotspot/share/adlc/main.cpp

Print this page

200   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_CLONE_file._fp);     // .cpp
201   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_EXPAND_file._fp);    // .cpp
202   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_FORMAT_file._fp);    // .cpp
203   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_GEN_file._fp);       // .cpp
204   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_MISC_file._fp);      // .cpp
205   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_PEEPHOLE_file._fp);  // .cpp
206   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_PIPELINE_file._fp);  // .cpp
207   AD.addSunCopyright(legal_text, legal_sz, AD._VM_file._fp);            // .hpp
208   AD.addSunCopyright(legal_text, legal_sz, AD._DFA_file._fp);           // .cpp
209   // Add include guards for all .hpp files
210   AD.addIncludeGuardStart(AD._HPP_file, "GENERATED_ADFILES_AD_HPP");        // .hpp
211   AD.addIncludeGuardStart(AD._VM_file, "GENERATED_ADFILES_ADGLOBALS_HPP");  // .hpp
212   // Add includes
213   AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._VM_file._name));
214   AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._HPP_file._name));
215   AD.addInclude(AD._CPP_file, "memory/allocation.inline.hpp");
216   AD.addInclude(AD._CPP_file, "code/codeCache.hpp");
217   AD.addInclude(AD._CPP_file, "code/compiledIC.hpp");
218   AD.addInclude(AD._CPP_file, "code/nativeInst.hpp");
219   AD.addInclude(AD._CPP_file, "code/vmreg.inline.hpp");

220   AD.addInclude(AD._CPP_file, "gc/shared/collectedHeap.inline.hpp");
221   AD.addInclude(AD._CPP_file, "oops/compressedOops.hpp");
222   AD.addInclude(AD._CPP_file, "oops/markWord.hpp");
223   AD.addInclude(AD._CPP_file, "oops/method.hpp");
224   AD.addInclude(AD._CPP_file, "oops/oop.inline.hpp");
225   AD.addInclude(AD._CPP_file, "opto/c2_MacroAssembler.hpp");
226   AD.addInclude(AD._CPP_file, "opto/cfgnode.hpp");
227   AD.addInclude(AD._CPP_file, "opto/intrinsicnode.hpp");
228   AD.addInclude(AD._CPP_file, "opto/locknode.hpp");
229   AD.addInclude(AD._CPP_file, "opto/opcodes.hpp");
230   AD.addInclude(AD._CPP_file, "opto/regalloc.hpp");
231   AD.addInclude(AD._CPP_file, "opto/regmask.hpp");
232   AD.addInclude(AD._CPP_file, "opto/runtime.hpp");
233   AD.addInclude(AD._CPP_file, "runtime/safepointMechanism.hpp");
234   AD.addInclude(AD._CPP_file, "runtime/sharedRuntime.hpp");
235   AD.addInclude(AD._CPP_file, "runtime/stubRoutines.hpp");
236   AD.addInclude(AD._CPP_file, "utilities/growableArray.hpp");
237   AD.addInclude(AD._CPP_file, "utilities/powerOfTwo.hpp");
238   AD.addInclude(AD._HPP_file, "memory/allocation.hpp");
239   AD.addInclude(AD._HPP_file, "oops/compressedOops.hpp");
240   AD.addInclude(AD._HPP_file, "code/nativeInst.hpp");
241   AD.addInclude(AD._HPP_file, "opto/output.hpp");
242   AD.addInclude(AD._HPP_file, "opto/machnode.hpp");
243   AD.addInclude(AD._HPP_file, "opto/node.hpp");
244   AD.addInclude(AD._HPP_file, "opto/regalloc.hpp");
245   AD.addInclude(AD._HPP_file, "opto/subnode.hpp");
246   AD.addInclude(AD._HPP_file, "opto/vectornode.hpp");
247   AD.addInclude(AD._CPP_CLONE_file, "adfiles", get_basename(AD._HPP_file._name));
248   AD.addInclude(AD._CPP_EXPAND_file, "adfiles", get_basename(AD._HPP_file._name));
249   AD.addInclude(AD._CPP_EXPAND_file, "oops/compressedOops.hpp");
250   AD.addInclude(AD._CPP_FORMAT_file, "adfiles", get_basename(AD._HPP_file._name));
251   AD.addInclude(AD._CPP_FORMAT_file, "compiler/oopMap.hpp");
252   AD.addInclude(AD._CPP_GEN_file, "adfiles", get_basename(AD._HPP_file._name));
253   AD.addInclude(AD._CPP_GEN_file, "opto/cfgnode.hpp");
254   AD.addInclude(AD._CPP_GEN_file, "opto/locknode.hpp");
255   AD.addInclude(AD._CPP_GEN_file, "opto/rootnode.hpp");
256   AD.addInclude(AD._CPP_MISC_file, "adfiles", get_basename(AD._HPP_file._name));
257   AD.addInclude(AD._CPP_PEEPHOLE_file, "adfiles", get_basename(AD._HPP_file._name));
258   AD.addInclude(AD._CPP_PIPELINE_file, "adfiles", get_basename(AD._HPP_file._name));
259   AD.addInclude(AD._DFA_file, "adfiles", get_basename(AD._HPP_file._name));

260   AD.addInclude(AD._DFA_file, "oops/compressedOops.hpp");
261   AD.addInclude(AD._DFA_file, "opto/cfgnode.hpp");  // Use PROB_MAX in predicate.
262   AD.addInclude(AD._DFA_file, "opto/intrinsicnode.hpp");
263   AD.addInclude(AD._DFA_file, "opto/matcher.hpp");
264   AD.addInclude(AD._DFA_file, "opto/narrowptrnode.hpp");
265   AD.addInclude(AD._DFA_file, "opto/opcodes.hpp");
266   AD.addInclude(AD._DFA_file, "opto/convertnode.hpp");
267   AD.addInclude(AD._DFA_file, "opto/superword.hpp");
268   AD.addInclude(AD._DFA_file, "utilities/powerOfTwo.hpp");
269 
270   // Make sure each .cpp file starts with include lines:
271   // files declaring and defining generators for Mach* Objects (hpp,cpp)
272   // Generate the result files:
273   // enumerations, class definitions, object generators, and the DFA
274   // file containing enumeration of machine operands & instructions (hpp)
275   AD.addPreHeaderBlocks(AD._HPP_file._fp);        // .hpp
276   AD.buildMachOperEnum(AD._HPP_file._fp);         // .hpp
277   AD.buildMachOpcodesEnum(AD._HPP_file._fp);      // .hpp
278   AD.buildMachRegisterNumbers(AD._VM_file._fp);   // VM file
279   AD.buildMachRegisterEncodes(AD._HPP_file._fp);  // .hpp file

200   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_CLONE_file._fp);     // .cpp
201   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_EXPAND_file._fp);    // .cpp
202   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_FORMAT_file._fp);    // .cpp
203   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_GEN_file._fp);       // .cpp
204   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_MISC_file._fp);      // .cpp
205   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_PEEPHOLE_file._fp);  // .cpp
206   AD.addSunCopyright(legal_text, legal_sz, AD._CPP_PIPELINE_file._fp);  // .cpp
207   AD.addSunCopyright(legal_text, legal_sz, AD._VM_file._fp);            // .hpp
208   AD.addSunCopyright(legal_text, legal_sz, AD._DFA_file._fp);           // .cpp
209   // Add include guards for all .hpp files
210   AD.addIncludeGuardStart(AD._HPP_file, "GENERATED_ADFILES_AD_HPP");        // .hpp
211   AD.addIncludeGuardStart(AD._VM_file, "GENERATED_ADFILES_ADGLOBALS_HPP");  // .hpp
212   // Add includes
213   AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._VM_file._name));
214   AD.addInclude(AD._CPP_file, "adfiles", get_basename(AD._HPP_file._name));
215   AD.addInclude(AD._CPP_file, "memory/allocation.inline.hpp");
216   AD.addInclude(AD._CPP_file, "code/codeCache.hpp");
217   AD.addInclude(AD._CPP_file, "code/compiledIC.hpp");
218   AD.addInclude(AD._CPP_file, "code/nativeInst.hpp");
219   AD.addInclude(AD._CPP_file, "code/vmreg.inline.hpp");
220   AD.addInclude(AD._CPP_file, "code/SCCache.hpp");
221   AD.addInclude(AD._CPP_file, "gc/shared/collectedHeap.inline.hpp");
222   AD.addInclude(AD._CPP_file, "oops/compressedOops.hpp");
223   AD.addInclude(AD._CPP_file, "oops/markWord.hpp");
224   AD.addInclude(AD._CPP_file, "oops/method.hpp");
225   AD.addInclude(AD._CPP_file, "oops/oop.inline.hpp");
226   AD.addInclude(AD._CPP_file, "opto/c2_MacroAssembler.hpp");
227   AD.addInclude(AD._CPP_file, "opto/cfgnode.hpp");
228   AD.addInclude(AD._CPP_file, "opto/intrinsicnode.hpp");
229   AD.addInclude(AD._CPP_file, "opto/locknode.hpp");
230   AD.addInclude(AD._CPP_file, "opto/opcodes.hpp");
231   AD.addInclude(AD._CPP_file, "opto/regalloc.hpp");
232   AD.addInclude(AD._CPP_file, "opto/regmask.hpp");
233   AD.addInclude(AD._CPP_file, "opto/runtime.hpp");
234   AD.addInclude(AD._CPP_file, "runtime/safepointMechanism.hpp");
235   AD.addInclude(AD._CPP_file, "runtime/sharedRuntime.hpp");
236   AD.addInclude(AD._CPP_file, "runtime/stubRoutines.hpp");
237   AD.addInclude(AD._CPP_file, "utilities/growableArray.hpp");
238   AD.addInclude(AD._CPP_file, "utilities/powerOfTwo.hpp");
239   AD.addInclude(AD._HPP_file, "memory/allocation.hpp");
240   AD.addInclude(AD._HPP_file, "oops/compressedOops.hpp");
241   AD.addInclude(AD._HPP_file, "code/nativeInst.hpp");
242   AD.addInclude(AD._HPP_file, "opto/output.hpp");
243   AD.addInclude(AD._HPP_file, "opto/machnode.hpp");
244   AD.addInclude(AD._HPP_file, "opto/node.hpp");
245   AD.addInclude(AD._HPP_file, "opto/regalloc.hpp");
246   AD.addInclude(AD._HPP_file, "opto/subnode.hpp");
247   AD.addInclude(AD._HPP_file, "opto/vectornode.hpp");
248   AD.addInclude(AD._CPP_CLONE_file, "adfiles", get_basename(AD._HPP_file._name));
249   AD.addInclude(AD._CPP_EXPAND_file, "adfiles", get_basename(AD._HPP_file._name));
250   AD.addInclude(AD._CPP_EXPAND_file, "oops/compressedOops.hpp");
251   AD.addInclude(AD._CPP_FORMAT_file, "adfiles", get_basename(AD._HPP_file._name));
252   AD.addInclude(AD._CPP_FORMAT_file, "compiler/oopMap.hpp");
253   AD.addInclude(AD._CPP_GEN_file, "adfiles", get_basename(AD._HPP_file._name));
254   AD.addInclude(AD._CPP_GEN_file, "opto/cfgnode.hpp");
255   AD.addInclude(AD._CPP_GEN_file, "opto/locknode.hpp");
256   AD.addInclude(AD._CPP_GEN_file, "opto/rootnode.hpp");
257   AD.addInclude(AD._CPP_MISC_file, "adfiles", get_basename(AD._HPP_file._name));
258   AD.addInclude(AD._CPP_PEEPHOLE_file, "adfiles", get_basename(AD._HPP_file._name));
259   AD.addInclude(AD._CPP_PIPELINE_file, "adfiles", get_basename(AD._HPP_file._name));
260   AD.addInclude(AD._DFA_file, "adfiles", get_basename(AD._HPP_file._name));
261   AD.addInclude(AD._DFA_file, "code/SCCache.hpp");
262   AD.addInclude(AD._DFA_file, "oops/compressedOops.hpp");
263   AD.addInclude(AD._DFA_file, "opto/cfgnode.hpp");  // Use PROB_MAX in predicate.
264   AD.addInclude(AD._DFA_file, "opto/intrinsicnode.hpp");
265   AD.addInclude(AD._DFA_file, "opto/matcher.hpp");
266   AD.addInclude(AD._DFA_file, "opto/narrowptrnode.hpp");
267   AD.addInclude(AD._DFA_file, "opto/opcodes.hpp");
268   AD.addInclude(AD._DFA_file, "opto/convertnode.hpp");
269   AD.addInclude(AD._DFA_file, "opto/superword.hpp");
270   AD.addInclude(AD._DFA_file, "utilities/powerOfTwo.hpp");
271 
272   // Make sure each .cpp file starts with include lines:
273   // files declaring and defining generators for Mach* Objects (hpp,cpp)
274   // Generate the result files:
275   // enumerations, class definitions, object generators, and the DFA
276   // file containing enumeration of machine operands & instructions (hpp)
277   AD.addPreHeaderBlocks(AD._HPP_file._fp);        // .hpp
278   AD.buildMachOperEnum(AD._HPP_file._fp);         // .hpp
279   AD.buildMachOpcodesEnum(AD._HPP_file._fp);      // .hpp
280   AD.buildMachRegisterNumbers(AD._VM_file._fp);   // VM file
281   AD.buildMachRegisterEncodes(AD._HPP_file._fp);  // .hpp file
< prev index next >