MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / alignment

Method alignment

llvm_util/llvm2alive.cpp:140–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139 template <typename T>
140 uint64_t alignment(T &i, llvm::Type *ty) const {
141 auto a = i.getAlign().value();
142 return a != 0 ? a : DL().getABITypeAlign(ty).value();
143 }
144
145 template <typename T>
146 uint64_t pref_alignment(T &i, llvm::Type *ty) const {

Callers

nothing calls this directly

Calls 1

getAlignMethod · 0.45

Tested by

no test coverage detected