<div dir="ltr">I was reading: <a href="https://llvm.org/docs/ExtendingLLVM.html">https://llvm.org/docs/ExtendingLLVM.html</a><div><br></div><div>And am heeding the warnings that come with new (derived) types.  </div><div><br></div><div>I'm trying to use LLVM to model chemicals.  More specifically, there are several reactive groups that exist: salts, bases, acids, etc. that adequately represent their respective values.  I, for obvious reasons, want to manifest those types in LLVM so I can type check a given input and use LLVM for all my compilation needs. </div><div><br></div><div>I'm uncertain what I should do with respect to LLVM and the guidance the documentation provides for adding new types.</div><div><br></div><div>Thanks!</div></div>