Ignore:
Timestamp:
Dec 8, 2018, 10:35:24 AM (6 months ago)
Author:
cameron
Message:

Trace facility initial check-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_builder.cpp

    r6189 r6220  
    896896}
    897897
    898 Value * IDISA_Builder::simd_and(Value * a, Value * b) {
    899     return a->getType() == b->getType() ? CreateAnd(a, b) : CreateAnd(bitCast(a), bitCast(b));
    900 }
    901 
    902 Value * IDISA_Builder::simd_or(Value * a, Value * b) {
    903     return a->getType() == b->getType() ? CreateOr(a, b) : CreateOr(bitCast(a), bitCast(b));
     898Value * IDISA_Builder::simd_and(Value * a, Value * b, StringRef s) {
     899    return a->getType() == b->getType() ? CreateAnd(a, b, s) : CreateAnd(bitCast(a), bitCast(b), s);
     900}
     901
     902Value * IDISA_Builder::simd_or(Value * a, Value * b, StringRef s) {
     903    return a->getType() == b->getType() ? CreateOr(a, b, s) : CreateOr(bitCast(a), bitCast(b), s);
    904904}
    905905   
    906 Value * IDISA_Builder::simd_xor(Value * a, Value * b) {
    907     return a->getType() == b->getType() ? CreateXor(a, b) : CreateXor(bitCast(a), bitCast(b));
    908 }
    909 
    910 Value * IDISA_Builder::simd_not(Value * a) {
    911     return simd_xor(a, Constant::getAllOnesValue(a->getType()));
     906Value * IDISA_Builder::simd_xor(Value * a, Value * b, StringRef s) {
     907    return a->getType() == b->getType() ? CreateXor(a, b, s) : CreateXor(bitCast(a), bitCast(b), s);
     908}
     909
     910Value * IDISA_Builder::simd_not(Value * a, StringRef s) {
     911    return simd_xor(a, Constant::getAllOnesValue(a->getType()), s);
    912912}
    913913
Note: See TracChangeset for help on using the changeset viewer.