mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-28 13:37:57 +03:00
Connect new parser to LLVM bitcode backend (#269)
This is very incomplete. Just enough code to emit LLVM bitcode and continue further development
This commit is contained in:
parent
193eb29be8
commit
46def3e7e0
35 changed files with 10125 additions and 7508 deletions
|
@ -1040,6 +1040,15 @@ pub enum MethodName<'input, ID> {
|
|||
Func(ID),
|
||||
}
|
||||
|
||||
impl<'input, ID> MethodName<'input, ID> {
|
||||
pub fn is_kernel(&self) -> bool {
|
||||
match self {
|
||||
MethodName::Kernel(_) => true,
|
||||
MethodName::Func(_) => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bitflags! {
|
||||
pub struct LinkingDirective: u8 {
|
||||
const NONE = 0b000;
|
||||
|
@ -1128,7 +1137,7 @@ impl SetpData {
|
|||
state.errors.push(PtxError::NonF32Ftz);
|
||||
None
|
||||
}
|
||||
_ => None
|
||||
_ => None,
|
||||
};
|
||||
let type_kind = type_.kind();
|
||||
let cmp_op = if type_kind == ScalarKind::Float {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue